- Jan 25, 2021
-
-
Gary Rong authored
This moves the tracing RPC API implementation to package eth/tracers. By doing so, package eth no longer depends on tracing and the duktape JS engine. The change also enables tracing using the light client. All tracing methods work with the light client, but it's a lot slower compared to using a full node.
-
Gary Rong authored
When a sethead/rewind finds that the targeted block is missing, it resets to genesis instead of crashing. Closes #22129
-
Melvin Junhee Woo authored
-
ucwong authored
This updates the goupnp dependency, fixing huin/goupnp#33
-
rene authored
This PR fixes the receipt status field to be decimal instead of a hex string, as called for by the spec. Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
Marius van der Wijden authored
This updates go module dependencies as discussed in #22050.
-
Martin Holst Swende authored
* eth/protocols/snap: make timeout configurable * eth/protocols/snap: snap sync testing * eth/protocols/snap: test to trigger panic * eth/protocols/snap: fix race condition on timeouts * eth/protocols/snap: return error on cancelled sync * squashme: updates + test causing panic + properly serve accounts in order * eth/protocols/snap: revert failing storage response * eth/protocols/snap: revert on bad responses (storage, code) * eth/protocols/snap: fix account handling stall * eth/protocols/snap: fix remaining revertal-issues * eth/protocols/snap: timeouthandler for bytecode requests * eth/protocols/snap: debugging + fix log message * eth/protocols/snap: fix misspelliings in docs * eth/protocols/snap: fix race in bytecode handling * eth/protocols/snap: undo deduplication of storage roots * synctests: refactor + minify panic testcase * eth/protocols/snap: minor polishes * eth: minor polishes to make logs more useful * eth/protocols/snap: remove excessive logs from the test runs * eth/protocols/snap: stress tests with concurrency * eth/protocols/snap: further fixes to test cancel channel handling * eth/protocols/snap: extend test timeouts on CI Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
- Jan 24, 2021
- Jan 22, 2021
-
-
Felix Lange authored
It takes three lines of code to get to runtime.nanotime, no need to pull a dependency for that.
-
Gary Rong authored
Fixes a special case when the trie only has a single trie node and the range proof only contains a single element.
-
- Jan 21, 2021
-
-
Łukasz Zimnoch authored
This adds a way to get the error of the failing subscription for logging/debugging purposes. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Sina Mahmoodi authored
This fixes #22131 and adds a test reproducing the issue.
-
- Jan 20, 2021
-
-
Péter Szilágyi authored
core: improve trie updates (part 2)
-
Péter Szilágyi authored
-
Martin Holst Swende authored
Squashed from the following commits: core/state: lazily init snapshot storage map core/state: fix flawed meter on storage reads core/state: make statedb/stateobjects reuse a hasher core/blockchain, core/state: implement new trie prefetcher core: make trie prefetcher deliver tries to statedb core/state: refactor trie_prefetcher, export storage tries blockchain: re-enable the next-block-prefetcher state: remove panics in trie prefetcher core/state/trie_prefetcher: address some review concerns sq
-
meowsbits authored
This is a simple refactoring, extracting common ancestor negotiation logic to named function
-
ucwong authored
-
Marius van der Wijden authored
-
- Jan 19, 2021
-
-
Gary Rong authored
This PR introduces a new config field SyncFromCheckpoint for light client. In some special scenarios, it's required to start synchronization from some arbitrary checkpoint or even from the scratch. So this PR offers this flexibility to users so that the synchronization start point can be configured. There are two relevant configs: SyncFromCheckpoint and Checkpoint. - If the SyncFromCheckpoint is true, the light client will try to sync from the specified checkpoint. - If the Checkpoint is not configured, then the light client will sync from the scratch(from the latest header if the database is not empty) Additional notes: these two configs are not visible in the CLI flags but only accessable in the config file. Example Usage: [Eth] SyncFromCheckpoint = true [Eth.Checkpoint] SectionIndex = 100 SectionHead = "0xabc" CHTRoot = "0xabc" BloomRoot = "0xabc" PS. Historical checkpoint can be retrieved from the synced full node or light client via les_getCheckpoint API.
-
Alex Mazalov authored
Adding warnings of free disk space left and graceful shutdown when there is not enough space left. This also adds a flag datadir.minfreedisk which can be used to set the trigger for low disk space, and setting it to zero disables the check. Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- Jan 18, 2021
-
-
Gary Rong authored
* core/state/snapshot: write snapshot generator in batch * core: refactor the tests * core: update tests * core: update tests
-
Marius van der Wijden authored
* cmd/geth: dump config * cmd/geth: dump config * cmd/geth: properly read config again * cmd/geth: override metrics if flags are set * cmd/geth: write metrics regardless if enabled * cmd/geth: renamed to metricsfromcliargs * metrics: add default configuration
-
Marius van der Wijden authored
* tests/fuzzers/abi: better test generation * tests/fuzzers/abi: fixed packing issue * oss-fuzz: enable abi fuzzer
-
- Jan 16, 2021
-
-
Gary Rong authored
This PR has two changes in the les protocol: - the auxRoot is not supported. See ethereum/devp2p#171 for more information - the empty response will be returned in GetHelperTrieProofsMsg request if the merkle proving is failed. note, for backward compatibility, the empty merkle proof as well as the request auxiliary data will still be returned in les2/3 protocol no matter the proving is successful or not. the proving failure can happen e.g. request the proving for a non-included entry in helper trie (unstable header).
-
Dan DeGreef authored
-
- Jan 15, 2021
-
-
Gary Rong authored
-
Péter Szilágyi authored
core/state/snapshot: add generation logs to storage too
-
Péter Szilágyi authored
-
- Jan 14, 2021
-
-
Péter Szilágyi authored
cmd/faucet: update the embedded website asset
-
Péter Szilágyi authored
-
- Jan 13, 2021
-
-
Martin Holst Swende authored
The tests sometimes failed with certain go versions because the behavior of http.Server.Shutdown changed over time. A bug that was fixed in Go 1.15 could cause active connections on unrelated servers to close unexpectedly. This is fixed by avoiding use of the same port number in all tests.
-
Marius van der Wijden authored
It seems that the 2 second timeout is not enough for Travis CI: --- FAIL: TestTestMode (2.00s) ethash_test.go:53: sealing result timeout
-
Martin Holst Swende authored
This solves an issue in graphql tests: graphql_test.go:38: could not create new node: datadir already used by another process
-
Martin Holst Swende authored
-
Guillaume Ballet authored
USB enumeration still occured. Make sure it will only occur if --usb is set. This also deprecates the 'NoUSB' config file option in favor of a new option 'USB'.
-
- Jan 12, 2021
-
-
Martin Holst Swende authored
* deps: use improved bloom filter implementation * eth/handler, trie: use 4 keys for syncbloom + minor fixes * eth/protocols, trie: revert change on syncbloom method signature
-
meowsbits authored
Resolves https://github.com/etclabscore/core-geth/issues/273 jsre.JSRE already handles establishing preload file paths relative to the 'assets' path (aka docroot), where it joins the assets dir and the file path if relative, or uses the file path only if absolute. The duplication of this logic by MakeConsolePreloads caused preloaded files to have paths which contained duplicate references to the assets dir path. Date: 2020-12-30 08:25:01-06:00 Signed-off-by:
meows <b5c6@protonmail.com>
-
rene authored
This changes the chainID RPC method to return an error when EIP-155 is not yet active at the current block height. It used to simply return zero in this case, but that's confusing.
-
- Jan 11, 2021
-
-
rene authored
-