- Sep 14, 2020
-
-
Zsolt Felföldi authored
* les, les/lespay/server: refactor client pool * les: use ns.Operation and sub calls where needed * les: fixed tests * les: removed active/inactive logic from peerSet * les: removed active/inactive peer logic * les: fixed linter warnings * les: fixed more linter errors and added missing metrics * les: addressed comments * cmd/geth: fixed TestPriorityClient * les: simplified clientPool state machine * les/lespay/server: do not use goroutine for balance callbacks * internal/web3ext: fix addBalance required parameters * les: removed freeCapacity, always connect at minCapacity initially * les: only allow capacity change with priority status Co-authored-by:
rjl493456442 <garyrong0905@gmail.com>
-
Felix Lange authored
This can be useful when working with raw RLP data.
-
Julian Koh authored
-
Zsolt Felföldi authored
This PR adds an extra guarantee to NodeStateMachine: it ensures that all immediate effects of a certain change are processed before any subsequent effects of any of the immediate effects on the same node. In the original version, if a cascaded change caused a subscription callback to be called multiple times for the same node then these calls might have happened in a wrong chronological order. For example: - a subscription to flag0 changes flag1 and flag2 - a subscription to flag1 changes flag3 - a subscription to flag1, flag2 and flag3 was called in the following order: [flag1] -> [flag1, flag3] [] -> [flag1] [flag1, flag3] -> [flag1, flag2, flag3] This happened because the tree of changes was traversed in a "depth-first order". Now it is traversed in a "breadth-first order"; each node has a FIFO queue for pending callbacks and each triggered subscription callback is added to the end of the list. The already existing guarantees are retained; no SetState or SetField returns until the callback queue of the node is empty again. Just like before, it is the responsibility of the state machine design to ensure that infinite state loops are not possible. Multiple changes affecting the same node can still happen simultaneously; in this case the changes can be interleaved in the FIFO of the node but the correct order is still guaranteed. A new unit test is also added to verify callback order in the above scenario.
-
- Sep 13, 2020
-
-
Shude Li authored
-
- Sep 11, 2020
-
-
Guillaume Ballet authored
-
Marius van der Wijden authored
Fixes a regression introduced in #21536
-
- Sep 10, 2020
-
-
Marius van der Wijden authored
This PR changes several different things: - Adds test cases for the miner loop - Stops the worker if it wasn't already stopped in worker.Close() - Uses channels instead of atomics in the miner.update() loop Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Guillaume Ballet authored
* cmd/geth: print warning when whisper config is present in toml * Update cmd/geth/config.go Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
Dan Sosedoff authored
This adds a new client method BlockNumber to fetch the most recent block number of the chain.
-
Shude Li authored
-
Martin Holst Swende authored
* core/vm/testdata: add gascost expectations to testcases * core/vm: verify expected gas in tests for precompiles * core/vm: fix overflow flaw in gas/s calculation
-
- Sep 09, 2020
-
-
Gary Rong authored
* cmd, eth: offer maxprice flag for overwritting price cap * eth: rename default price cap
-
Péter Szilágyi authored
eth/downloader: only roll back light sync if not fully validating
-
Marius van der Wijden authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Péter Szilágyi authored
params: update CHTs for v1.9.21 release
-
Péter Szilágyi authored
-
- Sep 08, 2020
-
-
Guillaume Ballet authored
-
Guillaume Ballet authored
-
Martin Holst Swende authored
* accounts/usbwallet, signer/core: un-hide accounts from ledger legacy derivation paths * Update accounts/usbwallet/wallet.go * Update signer/core/api.go * Update signer/core/api.go
-
Guillaume Ballet authored
* whisper: remove whisper * Update cmd/geth/config.go Co-authored-by:
Marius van der Wijden <m.vanderwijden@live.de> * cmd/geth: warn on enabling whisper + remove more whisper deps * mobile: remove all whisper references Co-authored-by:
Marius van der Wijden <m.vanderwijden@live.de> Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- Sep 07, 2020
-
-
Osoro Bironga authored
accounts: abi/bid/backends; cleaned doc errors, camelCase refactors and anonymous variable assignments (#21514) Co-authored-by:
Osoro Bironga <osoro@doctaroo.com>
-
Marius van der Wijden authored
* eth: Added TraceTransactionPending * eth: Implement Trace_Call, remove traceTxPending * eth: debug_call -> debug_traceCall, recompute tx environment if pruned * eth: fix nil panic * eth: improve block retrieving logic in tracers * internal/web3ext: add debug_traceCall to console
-
- Sep 02, 2020
-
-
Péter Szilágyi authored
core, eth, trie: prepare trie sync for path based operation
-
Péter Szilágyi authored
-
Martin Holst Swende authored
This changes how the downloader works, a little bit. Previously, when block sync started, we immediately started filling up to 8192 blocks. Usually this is fine, blocks are small in the early numbers. The threshold then is lowered as we measure the size of the blocks that are filled. However, if the node is shut down and restarts syncing while we're in a heavy segment, that might be bad. This PR introduces a more conservative initial threshold of 2K blocks instead.
-
- Sep 01, 2020
-
-
ucwong authored
-
Giuseppe Bertone authored
* "Downloader queue stats" is now a DEBUG information I think this info is more a DEBUG related information then an INFO. If it must remains an INFO, maybe it can be slow down to one time every 5 minutes or so. * Update queue.go "Downloader queue stats" information is now provided once every minute instead of once every 10 seconds.
-
Hanjiang Yu authored
-
Fuyang Deng authored
* accounts/abi: fix a bug in getTypeSize method e.g. for "Tuple[2]" type, the element of the array is a tuple type and the size of the tuple may not be 32. * accounts/abi: add unit test of getTypeSize method
-
- Aug 28, 2020
-
-
Felix Lange authored
-
- Aug 27, 2020
-
-
libotony authored
* tests: add testdata of call tracer * eth/tracers: return revert reason in call_tracer * eth/tracers: regenerate assets * eth/tracers: add error message even if no exec occurrs, fixes #21438 Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
Péter Szilágyi authored
core/state, eth, trie: stabilize memory use, fix memory leak
-
- Aug 26, 2020
-
-
ucwong authored
* go.mod | goleveldb latest update * go.mod update * leveldb options * go.mod: double check Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
Marius van der Wijden authored
-
Péter Szilágyi authored
-
Marius van der Wijden authored
* accounts/abi/bind/backends: Disallow timeshift for non-empty blocks * accounts/abi/bind/backends: added tests for adjust time * accounts/abi/bind/simulated: added comments, fixed test for AdjustTime * accounts/abi/bind/backends: updated comment
-