Felföldi Zsolt
25982375a8
les: fix retriever logic ( #16776 )
...
This PR fixes a retriever logic bug. When a peer had a soft timeout
and then a response arrived, it always assumed it was the same peer
even though it could have been a later requested one that did not time
out at all yet. In this case the logic went to an illegal state and
deadlocked, causing a goroutine leak.
Fixes #16243 and replaces #16359 .
Thanks to @riceke for finding the bug in the logic.
6 years ago
Felföldi Zsolt
049f5b3572
core, eth, les: more efficient hash-based header chain retrieval ( #16946 )
6 years ago
Felix Lange
0255951587
crypto: replace ToECDSAPub with error-checking func UnmarshalPubkey ( #16932 )
...
ToECDSAPub was unsafe because it returned a non-nil key with nil X, Y in
case of invalid input. This change replaces ToECDSAPub with
UnmarshalPubkey across the codebase.
6 years ago
Péter Szilágyi
85cd64df0e
Merge pull request #16958 from karalabe/pending-account-fast
...
internal/ethapi: reduce pendingTransactions to O(txs+accs) from O(txs*accs)
6 years ago
Péter Szilágyi
9608ccf106
Merge pull request #16959 from karalabe/fix-linters
...
metrics: fix gofmt linter warnings
6 years ago
Péter Szilágyi
3f06da7b5f
metrics: fix gofmt linter warnings
6 years ago
Felföldi Zsolt
546d42179e
les: pass server pool to protocol manager ( #16947 )
6 years ago
Péter Szilágyi
90829a04bf
internal/ethapi: reduce pendingTransactions to O(txs+accs) from O(txs*accs)
6 years ago
gary rong
f991995918
ethdb: gracefullly handle quit channel ( #16794 )
...
* ethdb: gratefullly handle quit channel
* ethdb: minor polish
7 years ago
Wenbiao Zheng
aab7ab04b0
core/rawdb: wrap db key creations ( #16914 )
...
* core/rawdb: use wrappered helper to assemble key
* core/rawdb: wrappered helper to assemble key
* core/rawdb: rewrite the wrapper, pass common.Hash
7 years ago
Péter Szilágyi
43b940ec5a
Merge pull request #16945 from karalabe/triedb-spurious-warning
...
trie: don't report the root flushlist as an alloc
7 years ago
Clayton Jacobs
b487bdf0ba
metrics: removed repetitive calculations ( #16944 )
7 years ago
Péter Szilágyi
a3267ed929
trie: don't report the root flushlist as an alloc
7 years ago
Péter Szilágyi
9f7592c802
Merge pull request #16942 from karalabe/rpc-nil-reply
...
rpc: support returning nil pointer big.Ints (null)
7 years ago
Péter Szilágyi
99483e85b9
rpc: support returning nil pointer big.Ints (null)
7 years ago
xincaosu
1d666cf27e
rpc: fix a comment typo ( #16929 )
7 years ago
Martin Holst Swende
eac16f9824
core: improve getBadBlocks to return full block rlp ( #16902 )
...
* core: improve getBadBlocks to return full block rlp
* core, eth, ethapi: changes to getBadBlocks formatting
* ethapi: address review concerns
7 years ago
Steven Roose
69c52bde3f
ethclient: fix RPC parse error of Parity response ( #16924 )
...
The error produced when using a Parity RPC was the following:
ERROR: transaction did not get mined: failed to get tx for txid 0xbdeb094b3278019383c8da148ff1cb5b5dbd61bf8731bc2310ac1b8ed0235226: json: cannot unmarshal non-string into Go struct field txExtraInfo.blockHash of type common.Hash
7 years ago
Felföldi Zsolt
2977538ac0
light: new CHTs for mainnet and ropsten ( #16926 )
7 years ago
Anton Evangelatov
7f0726f706
metrics: return an empty snapshot for NilResettingTimer ( #16930 )
7 years ago
Steven Roose
13af276418
cmd/ethkey: add command to change key passphrase ( #16516 )
...
This change introduces
ethkey changepassphrase <keyfile>
to change the passphrase of a key file.
7 years ago
Sarlor
ea06da0892
trie: avoid unnecessary slicing on shortnode decoding ( #16917 )
...
optimization code
7 years ago
ledgerwatch
feb6620c34
core: relax type requirement for bc in ApplyTransaction ( #16901 )
7 years ago
Bruno Škvorc
90b22773e9
cmd/puppeth: fixed a typo in a wizard input query ( #16910 )
7 years ago
Guillaume Ballet
9e4f96a1a6
whisper: re-insert #16757 that has been lost during a merge ( #16889 )
7 years ago
Péter Szilágyi
01a7e267dc
Merge pull request #16882 from karalabe/streaming-ecrecover
...
core: concurrent background transaction sender ecrecover
7 years ago
Felix Lange
e8ea5aa0d5
trie: reduce hasher allocations ( #16896 )
...
* trie: reduce hasher allocations
name old time/op new time/op delta
Hash-8 4.05µs ±12% 3.56µs ± 9% -12.13% (p=0.000 n=20+19)
name old alloc/op new alloc/op delta
Hash-8 1.30kB ± 0% 0.66kB ± 0% -49.15% (p=0.000 n=20+20)
name old allocs/op new allocs/op delta
Hash-8 11.0 ± 0% 8.0 ± 0% -27.27% (p=0.000 n=20+20)
* trie: bump initial buffer cap in hasher
7 years ago
Elad
5bee5d69d7
vendor: added vendor packages necessary for the swarm-network-rewrite merge ( #16792 )
...
* vendor: added vendor packages necessary for the swarm-network-rewrite merge into ethereum master
* vendor: removed multihash deps
7 years ago
kiel barry
cbfb40b0aa
params: fix golint warnings ( #16853 )
...
params: fix golint warnings
7 years ago
Antonio Salazar Cardozo
4cf2b4110e
cmd/abigen: support for reading solc output from stdin ( #16683 )
...
Allow the --abi flag to be given - to indicate that it should read the
ABI information from standard input. It expects to read the solc output
with the --combined-json flag providing bin, abi, userdoc, devdoc, and
metadata, and works very similarly to the internal invocation of solc,
except it allows external invocation of solc.
This facilitates integration with more complex solc invocations, such
as invocations that require path remapping or --allow-paths tweaks.
Simple usage example:
solc --combined-json bin,abi,userdoc,devdoc,metadata *.sol | abigen --abi -
7 years ago
Mark
0029a869f0
miner: not call commitNewWork if it's a side block ( #16751 )
7 years ago
Péter Szilágyi
2ab24a2a8f
core: concurrent background transaction sender ecrecover
7 years ago
Martin Holst Swende
400332b99d
eth/tracers: fix minor off-by-one error ( #16879 )
...
* tracing: fix minor off-by-one error
* tracers: go generate
7 years ago
Felföldi Zsolt
a5237a27ea
les: add Skip overflow check to GetBlockHeadersMsg handler ( #16891 )
7 years ago
Péter Szilágyi
7a22e89080
Merge pull request #16894 from hadv/master
...
core: fix typo in comment code
7 years ago
hadv
e3a993d774
core: fix typo in comment code
7 years ago
Péter Szilágyi
ed40767355
Merge pull request #16800 from rjl493456442/memory_allowance_warining
...
cmd: cap cache size if exceeds reasonable range
7 years ago
rjl493456442
a20cc75b4a
cmd/geth: cap cache allowance
7 years ago
Péter Szilágyi
b659718fd0
Merge pull request #16880 from holiman/http_timeouts
...
rpc: set timeouts for http server, see #16859
7 years ago
Anton Evangelatov
be2aec092d
metrics: expvar support for ResettingTimer ( #16878 )
...
* metrics: expvar support for ResettingTimer
* metrics: use integers for percentiles; remove Overall
* metrics: fix edge-case panic for index-out-of-range
7 years ago
Martin Holst Swende
17f80cc2e2
rpc: set timeouts for http server, see #16859
7 years ago
Péter Szilágyi
143c4341d8
core, eth, trie: streaming GC for the trie cache ( #16810 )
...
* core, eth, trie: streaming GC for the trie cache
* trie: track memcache statistics
7 years ago
Felix Lange
3f33a7c8ce
consensus/ethash: reduce keccak hash allocations ( #16857 )
...
Use Read instead of Sum to avoid internal allocations and
copying the state.
name old time/op new time/op delta
CacheGeneration-8 764ms ± 1% 579ms ± 1% -24.22% (p=0.000 n=20+17)
SmallDatasetGeneration-8 75.2ms ±12% 60.6ms ±10% -19.37% (p=0.000 n=20+20)
HashimotoLight-8 1.58ms ±11% 1.55ms ± 8% ~ (p=0.322 n=20+19)
HashimotoFullSmall-8 4.90µs ± 1% 4.88µs ± 1% -0.31% (p=0.013 n=19+18)
7 years ago
Ryan Schneider
c8dcb9584e
rpc: use HTTP request context as top-level context ( #16861 )
7 years ago
kiel barry
af28d12847
console: squash golint warnings ( #16836 )
7 years ago
kiel barry
0ad32d3be7
ethstats: fix last golint warning ( #16837 )
7 years ago
Péter Szilágyi
68b0d30d4a
VERSION, params: begin 1.8.11 release cycle
7 years ago
Péter Szilágyi
eae63c511c
params: release Geth 1.8.10 hotfix
7 years ago
Péter Szilágyi
ca34e8230e
Merge pull request #16843 from karalabe/txpool-fix-deadlock
...
core: fix transaction event asynchronicity
7 years ago
Péter Szilágyi
342ec83d67
core: fix transaction event asynchronicity
7 years ago