Lefteris Karapetsas
e2fdd33541
common: Fix HomeDir detection
...
I am working on porting geth to [Ubuntu Core](https://developer.ubuntu.com/en/snappy/https://developer.ubuntu.com/en/snappy/ ). I am testing geth on a Raspberry PI and for Ubuntu Core the $HOME directory is unique for each application. See [here](https://developer.ubuntu.com/en/snappy/guides/filesystem-layout ) for more information of their filesystem layout.
For some reason in Go `usr.HomeDir` returns a different value than `$HOME` in Ubuntu Core.
Adding this at the end of `HomeDir()`
```go
fmt.Printf("at HomeDir, user.HomeDir = %s and $HOME is %s\n", usr.HomeDir, os.Getenv("HOME"))
```
gives the following output
```
at HomeDir, user.HomeDir = /home/ubuntu and $HOME is /home/ubuntu/apps/geth.sideload/IJcODREBYbHO
```
With this commit, I propose giving precedence to the `$HOME` environment variable as is also suggested by the [homedir](https://github.com/mitchellh/go-homedir/blob/master/homedir.go ) project.
9 years ago
Jeffrey Wilcke
32226f1b0c
Merge pull request #2097 from karalabe/block-state-checks
...
core, eth/downloader: ensure state presence in ancestor lookup
9 years ago
Jeffrey Wilcke
a7fc4fa9b7
Merge pull request #2101 from karalabe/delete-outoffund-transactions
...
core: transaction invalidation and reorganization fixes
9 years ago
Péter Szilágyi
649787a9bf
core: fix transaction reorg issues within the tx pool
9 years ago
Péter Szilágyi
9e011ff1cd
core, eth/downloader: ensure state presence in ancestor lookup
9 years ago
Felix Lange
36137623ed
Merge pull request #2099 from karalabe/fix-throttling-test
...
eth/downloader: throttling tests are time-sensitive, don't run parallel
9 years ago
Péter Szilágyi
1f39746886
eth/downloader: throttling tests are time-sensitive, don't run parallel
9 years ago
Jeffrey Wilcke
dbbcf558e2
Merge pull request #2064 from fjl/remove-common-rlp
...
common: remove old RLP implementation, Value and ExtPackage
9 years ago
Jeffrey Wilcke
4811409e99
Merge pull request #2084 from bas-vk/rpcnilptr
...
console crash on nil ptr
9 years ago
Bas van Kervel
3c9a2c752f
console: bugfix that causes the console to crash when connection to an endpoint without the personal api enabled
9 years ago
Jeffrey Wilcke
fd69d2b7a8
Merge pull request #2019 from zsfelfoldi/light-state
...
Light state
9 years ago
Felix Lange
e6fb69296e
common: remove old RLP implementation, Value and ExtPackage
...
In order to make this happen, kill all remaining trivial uses of
common/{rlp,value}.go. The non-trivial ones have been updated earlier.
9 years ago
Felix Lange
1b89bd5d26
core/state, core/types use package rlp for state, receipt serialisation
9 years ago
Felix Lange
9be5d5cd90
eth/downloader: fix negative balance issue in tests
...
The test chain generated by makeChainFork included invalid uncle
headers, crashing the generator during the state commit.
The headers were invalid because they used the iteration counter as the
block number, even though makeChainFork uses a block with number > 0 as
the parent. Fix this by introducing BlockGen.Number, which allows
accessing the actual number of the block being generated.
9 years ago
Jeffrey Wilcke
2baf1de00d
Merge pull request #1925 from fjl/p2p-dial-resolve
...
p2p: resolve incomplete dial targets
9 years ago
Felix Lange
b3f1f4c673
p2p/discover: attempt to deflake TestUDP_responseTimeouts
...
The test expected the timeout to fire after a matcher for the response
was added, but the timeout is random and fired sooner sometimes.
9 years ago
Felix Lange
6c41e675ec
p2p: resolve incomplete dial targets
...
This change makes it possible to add peers without providing their IP
address. The endpoint of the target node is resolved using the discovery
protocol.
9 years ago
Felix Lange
04c6369a09
p2p, p2p/discover: track bootstrap state in p2p/discover
...
This change simplifies the dial scheduling logic because it
no longer needs to track whether the discovery table has been
bootstrapped.
9 years ago
Felix Lange
d1f507b7f1
p2p/discover: support incomplete node URLs, add Resolve
9 years ago
zsfelfoldi
ef422ee1e1
light: implemented odr-capable trie and state structures
9 years ago
Jeffrey Wilcke
82a024d425
Merge pull request #1997 from zsfelfoldi/gasprice2
...
core: tx pool skip price validation for "owned" transactions
9 years ago
Jeffrey Wilcke
24f856ad6b
Merge pull request #2077 from karalabe/fix-header-query-duplication
...
eth: fix #2076 , where end of hash query was interpreted number query
9 years ago
Felix Lange
e640861704
Merge pull request #2061 from zsfelfoldi/rpc-context
...
rpc: optionally passing context argument to rpc v2 api methods
9 years ago
Péter Szilágyi
e51eeb8104
eth: fix #2076 , where end of hash query was interpreted number query
9 years ago
zsfelfoldi
f3aac71fad
rpc/v2: optionally passing context argument to rpc v2 api methods
9 years ago
zsfelfoldi
975c591261
core: tx pool skip price validation for "owned" transactions
9 years ago
Felix Lange
b9aedeab0b
Merge pull request #2072 from karalabe/admin-debug-apis
...
core, eth, node, rpc: port the admin and debug API
9 years ago
Felix Lange
9c636d2490
Merge pull request #2070 from karalabe/android-archives
...
Makefile, cmd/geth: support building Android archives
9 years ago
Péter Szilágyi
d8370a4e15
core, eth, node, rpc: port the admin and debug API
9 years ago
Felix Lange
fa187a366d
Merge pull request #2035 from bas-vk/rcp-v2-rebase
...
rpc: new RPC implementation with pub/sub support
9 years ago
Bas van Kervel
eae81465c1
rpc: new RPC implementation with pub/sub support
9 years ago
Péter Szilágyi
03f090b30b
Makefile, cmd/geth: support building Android archives
9 years ago
Jeffrey Wilcke
787d71d659
Merge pull request #2056 from fjl/fix-account-format
...
crypto: "Crypto" -> "crypto" in web3 key format
9 years ago
Felix Lange
b2ffb76ca2
Merge pull request #2058 from karalabe/geth-framework
...
Makefile, cmd/geth: assemble ios xcode frameworks
9 years ago
Péter Szilágyi
0e4deeb6e7
Makefile, cmd/geth: assemble ios xcode frameworks
9 years ago
Felix Lange
38ff815485
Merge pull request #2003 from obscuren/abi-calling
...
accounts/abi: added output parsing & added call mechanism
9 years ago
Felix Lange
659d6b9b7c
Merge pull request #2051 from karalabe/store-transaction-fastsync
...
core: write individual transactions and receipts too on fast sync
9 years ago
Felix Lange
032453b3e7
crypto: "Crypto" -> "crypto" in web3 key format
9 years ago
Jeffrey Wilcke
2a3322ea14
Merge pull request #2034 from karalabe/always-allow-dyndials
...
p2p: always allow dynamic dials if network not disabled
9 years ago
Péter Szilágyi
1cecda8333
core: write individual transactions and receipts too on fast sync
9 years ago
Péter Szilágyi
4dee2000a3
Merge pull request #2037 from fjl/no-libgmp
...
crypto/secp256k1: remove dependency on libgmp
9 years ago
Jeffrey Wilcke
fece1fa9be
Merge pull request #2024 from obscuren/exp-logs
...
core: added a new RemovedLogEvent
9 years ago
Felix Lange
02356b36d6
crypto/secp256k1: remove dependency on libgmp
...
Turns out we actually don't need it, USE_NUM_NONE works
because we also set USE_FIELD_INV_BUILTIN.
9 years ago
Felix Lange
6d3a924283
Merge pull request #2036 from karalabe/ios-arm64-cross
...
Makefile: support 64bit ARM iOS cross builds
9 years ago
Péter Szilágyi
9acec62cf8
Makefile: support 64bit ARM iOS cross builds
9 years ago
Péter Szilágyi
abb53644c6
p2p: always allow dynamic dials if network not disabled
9 years ago
Jeffrey Wilcke
3eebeae363
Merge pull request #2032 from karalabe/linux-arm64-cross
...
Makefile: enable 64-bit ARM builds on Linux
9 years ago
Péter Szilágyi
98d68cfa91
Makefile: enable 64-bit ARM builds on Linux
9 years ago
Jeffrey Wilcke
888e7bc765
Merge pull request #1862 from Gustav-Simonsson/libsecp256k1_ecdh
...
crypto, crypto/secp256k1: use libsecp256k1 for scalar multiplication
9 years ago
Felix Lange
8db9d44ca9
Merge pull request #2025 from karalabe/windows-account-unlock-testfix
...
accounts: increase re-lock timeout to account for slow CI servers
9 years ago