- Feb 05, 2021
-
-
Marius van der Wijden authored
-
- Feb 03, 2021
-
-
Marius van der Wijden authored
This pr adds consensys' gurvy bn256 variant into the code for differential fuzzing.
-
Marius van der Wijden authored
fixes an issue where local transactions that were included in the chain before a SetHead were rejected if resubmitted, since the txpool had not reset the state to the current (older) state.
-
- Feb 02, 2021
-
-
ucwong authored
The PR makes use of the stacktrie, which is is more lenient on resource consumption, than the regular trie, in cases where we only need it for DeriveSha
-
Alex Prut authored
* remove uneeded convertion type * remove redundant type in composite literal * omit explicit type where implicit * remove unused redundant parenthesis * remove redundant import alias duktape
-
rene authored
This change allows users to set a custom path prefix on which to mount the http-rpc or ws-rpc handlers via the new flags --http.rpcprefix and --ws.rpcprefix. Fixes #21826 Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Péter Szilágyi authored
* eth: check snap satelliteness, delegate drop to eth * eth: better handle eth/snap satellite relation, merge reg/unreg paths
-
- Feb 01, 2021
-
-
Sina Mahmoodi authored
-
- Jan 29, 2021
-
-
Martin Holst Swende authored
Fixes #20123
-
- Jan 28, 2021
-
-
Zsolt Felföldi authored
* les/utils: Limiter * les/utils: dropped prior weight vs variable cost logic, using fixed weights * les/utils: always create node selector in addressGroup * les/utils: renamed request weight to request cost * les/utils: simplified and improved the DoS penalty mechanism * les/utils: minor fixes * les/utils: made selection weight calculation nicer * les/utils: fixed linter warning * les/utils: more precise and reliable probabilistic test * les/utils: fixed linter warning
-
Sina Mahmoodi authored
Removes the yolov2 definition, adds yolov3, including EIP-2565. This PR also disables some of the erroneously generated blockchain and statetests, and adds the new genesis hash + alloc for yolov3. This PR disables the CLI switches for yolo, since it's not complete until we merge support for 2930.
-
- Jan 27, 2021
-
-
Guillaume Ballet authored
It never worked, whisper uses polling. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- Jan 26, 2021
-
-
Zsolt Felföldi authored
This PR enables running the new discv5 protocol in both LES client and server mode. In client mode it mixes discv5 and dnsdisc iterators (if both are enabled) and filters incoming ENRs for "les" tag and fork ID. The old p2p/discv5 package and all references to it are removed. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Guillaume Ballet authored
-
Felix Lange authored
* accounts/scwallet: use go-ethereum crypto instead of go-ecdh github.com/wsddn/go-ecdh is a wrapper package for ECDH functionality with any elliptic curve. Since 'generic' ECDH is not required in accounts/scwallet (the curve is always secp256k1), we can just use the standard library functionality and our own crypto libraries to perform ECDH and save a dependency. * Update accounts/scwallet/securechannel.go Co-authored-by:
Guillaume Ballet <gballet@gmail.com> * Use the correct key Co-authored-by:
Guillaume Ballet <gballet@gmail.com>
-
Martin Holst Swende authored
This PR implements the following modifications - Don't shortcut check if block is present, thus avoid disk lookup - Don't check hash ancestry in early-check (it's still done in parallel checker) - Don't check time.Now for every single header Charts and background info can be found here: https://github.com/holiman/headerimport/blob/main/README.md With these changes, writing 1M headers goes down to from 80s to 62s.
-
Martin Holst Swende authored
-
Péter Szilágyi authored
This adds more info about submitted transactions in log messages. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- Jan 25, 2021
-
-
Marius van der Wijden authored
* tests/fuzzers/abi: fixed one-off panic with int.Min64 value * tests/fuzzers/abi: fixed one-off panic with int.Min64 value
-
Martin Holst Swende authored
* eth, p2p: reserve half peer slots for snap peers during snap sync * eth: less logging * eth: rework the eth/snap peer reservation logic * eth: rework the eth/snap peer reservation logic (again)
-
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.
-