- 28 Oct, 2021 1 commit
-
-
Martin Holst Swende authored
This PR adds support for ArrowGlacier, as defined by https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md https://eips.ethereum.org/EIPS/eip-4345 > Starting with FORK_BLOCK_NUMBER the client will calculate the difficulty based on a fake block number suggesting to the client that the difficulty bomb is adjusting 10,700,000 blocks later than the actual block number. This also adds support for evm t8n to return the calculated difficulty, so it can be used to construct test.
-
- 13 Sep, 2021 1 commit
-
-
Marius van der Wijden authored
* core: cmd: invert disableMemory * core: fix missed inversion * cmd/evm: preserve Flags but change default value * Apply suggestions from code review Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- 25 Aug, 2021 2 commits
-
-
Felix Lange authored
Generated by go1.17 fmt ./...
-
Martin Holst Swende authored
-
- 24 Aug, 2021 2 commits
-
-
gary rong authored
-
baptiste-b-pegasys authored
-
- 23 Aug, 2021 1 commit
-
-
Marius van der Wijden authored
-
- 17 Aug, 2021 1 commit
-
-
Martin Holst Swende authored
* tests: update, enable legacy tests, remove vm tests * tests: minor fixes
-
- 07 Aug, 2021 1 commit
-
-
Martin Holst Swende authored
This adds a check to verify that a sender-account does not have code, which means that the codehash is either `emptyCodeHash` _OR_ not present. The latter occurs IFF the sender did not previously exist, a situation which can only occur with zero cost gasprices.
-
- 29 Jul, 2021 2 commits
-
-
baptiste-b-pegasys authored
-
Marius van der Wijden authored
-
- 06 Jul, 2021 1 commit
-
-
Sina Mahmoodi authored
* all: rm external interpreter and ewasm config * core/vm: rm Interpreter interface * cmd/geth: deprecate interpreter config fields
-
- 18 Jun, 2021 2 commits
-
-
Marius van der Wijden authored
-
Marius van der Wijden authored
-
- 07 Jun, 2021 1 commit
-
-
Martin Holst Swende authored
This updates the tests submodule to the London fork tests, and also updates the test runner to support the new EIP-1559 fields in test JSON.
-
- 27 May, 2021 1 commit
-
-
Marius van der Wijden authored
This commit changes the behavior of BitCurve.Add to be more inline with btcd. It fixes two different bugs: 1) When adding a point at infinity to another point, the other point should be returned. While this is undefined behavior, it is better to be more inline with the go standard library. Thus (0,0) + (a, b) = (a,b) 2) Adding the same point to itself produced the point at infinity. This is incorrect, now doubleJacobian is used to correctly calculate it. Thus (a,b) + (a,b) == 2* (a,b) and not (0,0) anymore. The change also adds a differential fuzzer for Add, testing it against btcd. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- 25 May, 2021 2 commits
-
-
Eugene Lepeico authored
There were 2 TODOs about that fix after Golang 1.8 release. It's here for 3 years already, so now should be the right time.
-
ucwong authored
-
- 17 May, 2021 1 commit
-
-
Martin Holst Swende authored
This is the initial implementation of EIP-1559 in packages core/types and core. Mining, RPC, etc. will be added in subsequent commits. Co-authored-by:
Marius van der Wijden <m.vanderwijden@live.de> Co-authored-by:
lightclient@protonmail.com <lightclient@protonmail.com> Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- 06 May, 2021 1 commit
-
-
Martin Holst Swende authored
* all: define London+baikal, undefine yolov3, add london override flag * cmd, core, params: add baikal genesis definition
-
- 29 Apr, 2021 1 commit
-
-
Péter Szilágyi authored
-
- 28 Apr, 2021 3 commits
-
-
Martin Holst Swende authored
* trie: add benchmark for proofless range * trie: remove unused returns + use stacktrie
-
gary rong authored
* les, tests: fix les clientpool * tests: disable debug mode * les: polish code
-
Gautam Botrel authored
Add more cross-fuzzers to fuzz bls with gnark versus geth's own bls12-381 library
-
- 27 Apr, 2021 1 commit
-
-
Péter Szilágyi authored
* eth/protocols/snap: generate storage trie from full dirty snap data * eth/protocols/snap: get rid of some more dead code * eth/protocols/snap: less frequent logs, also log during trie generation * eth/protocols/snap: implement dirty account range stack-hashing * eth/protocols/snap: don't loop on account trie generation * eth/protocols/snap: fix account format in trie * core, eth, ethdb: glue snap packets together, but not chunks * eth/protocols/snap: print completion log for snap phase * eth/protocols/snap: extended tests * eth/protocols/snap: make testcase pass * eth/protocols/snap: fix account stacktrie commit without defer * ethdb: fix key counts on reset * eth/protocols: fix typos * eth/protocols/snap: make better use of delivered data (#44) * eth/protocols/snap: make better use of delivered data * squashme * eth/protocols/snap: reduce chunking * squashme * eth/protocols/snap: reduce chunking further * eth/protocols/snap: break out hash range calculations * eth/protocols/snap: use sort.Search instead of looping * eth/protocols/snap: prevent crash on storage response with no keys * eth/protocols/snap: nitpicks all around * eth/protocols/snap: clear heal need on 1-chunk storage completion * eth/protocols/snap: fix range chunker, add tests Co-authored-by:
Péter Szilágyi <peterke@gmail.com> * trie: fix test API error * eth/protocols/snap: fix some further liter issues * eth/protocols/snap: fix accidental batch reuse Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- 20 Apr, 2021 1 commit
-
-
Martin Holst Swende authored
-
- 06 Apr, 2021 1 commit
-
-
Felföldi Zsolt authored
* les: move client pool to les/vflux/server * les/vflux/server: un-expose NodeBalance, remove unused fn, fix bugs * tests/fuzzers/vflux: add ClientPool fuzzer * les/vflux/server: fixed balance tests * les: rebase fix * les/vflux/server: fixed more bugs * les/vflux/server: unexported NodeStateMachine fields and flags * les/vflux/server: unexport all internal components and functions * les/vflux/server: fixed priorityPool test * les/vflux/server: polish balance * les/vflux/server: fixed mutex locking error * les/vflux/server: priorityPool bug fixed * common/prque: make Prque wrap-around priority handling optional * les/vflux/server: rename funcs, small optimizations * les/vflux/server: fixed timeUntil * les/vflux/server: separated balance.posValue and negValue * les/vflux/server: polish setup * les/vflux/server: enforce capacity curve monotonicity * les/vflux/server: simplified requestCapacity * les/vflux/server: requestCapacity with target range, no iterations in SetCapacity * les/vflux/server: minor changes * les/vflux/server: moved default factors to balanceTracker * les/vflux/server: set inactiveFlag in priorityPool * les/vflux/server: moved related metrics to vfs package * les/vflux/client: make priorityPool temp state logic cleaner * les/vflux/server: changed log.Crit to log.Error * add vflux fuzzer to oss-fuzz Co-authored-by:
rjl493456442 <garyrong0905@gmail.com>
-
- 16 Mar, 2021 1 commit
-
-
Martin Holst Swende authored
The oss-fuzz fuzzer has been reporting some failing testcases for les. They're all spurious, and cannot reliably be reproduced. However, running them showed that there was a goroutine leak: the tests created a lot of new clients, which started an exec queue that was never torn down. This PR fixes the goroutine leak, and also a log message which was erroneously formatted.
-
- 07 Mar, 2021 1 commit
-
-
Martin Holst Swende authored
-
- 03 Mar, 2021 1 commit
-
-
Marius van der Wijden authored
This updates the consensus tests to commit 31d6630 and adds support for access list transactions in the test runner. Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
- 26 Feb, 2021 1 commit
-
-
Péter Szilágyi authored
-
- 25 Feb, 2021 1 commit
-
-
lightclient authored
This adds support for EIP-2718 typed transactions as well as EIP-2930 access list transactions (tx type 1). These EIPs are scheduled for the Berlin fork. There very few changes to existing APIs in core/types, and several new APIs to deal with access list transactions. In particular, there are two new constructor functions for transactions: types.NewTx and types.SignNewTx. Since the canonical encoding of typed transactions is not RLP-compatible, Transaction now has new methods for encoding and decoding: MarshalBinary and UnmarshalBinary. The existing EIP-155 signer does not support the new transaction types. All code dealing with transaction signatures should be updated to use the newer EIP-2930 signer. To make this easier for future updates, we have added new constructor functions for types.Signer: types.LatestSigner and types.LatestSignerForChainID. This change also adds support for the YoloV3 testnet. Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Felix Lange <fjl@twurst.com> Co-authored-by:
Ryan Schneider <ryanleeschneider@gmail.com>
-
- 20 Feb, 2021 1 commit
-
-
Felföldi Zsolt authored
* les: refactored server handler * tests/fuzzers/les: add fuzzer for les server handler * tests, les: update les fuzzer tests: update les fuzzer tests/fuzzer/les: release resources tests/fuzzer/les: pre-initialize all resources * les: refactored server handler and fuzzer Co-authored-by:
rjl493456442 <garyrong0905@gmail.com>
-
- 08 Feb, 2021 1 commit
-
-
gary rong authored
* cmd, core, tests: initial state pruner core: fix db inspector cmd/geth: add verify-state cmd/geth: add verification tool core/rawdb: implement flatdb cmd, core: fix rebase core/state: use new contract code layout core/state/pruner: avoid deleting genesis state cmd/geth: add helper function core, cmd: fix extract genesis core: minor fixes contracts: remove useless core/state/snapshot: plugin stacktrie core: polish core/state/snapshot: iterate storage concurrently core/state/snapshot: fix iteration core: add comments core/state/snapshot: polish code core/state: polish core/state/snapshot: rebase core/rawdb: add comments core/rawdb: fix tests core/rawdb: improve tests core/state/snapshot: fix concurrent iteration core/state: run pruning during the recovery core, trie: implement martin's idea core, eth: delete flatdb and polish pruner trie: fix import core/state/pruner: add log core/state/pruner: fix issues core/state/pruner: don't read back core/state/pruner: fix contract code write core/state/pruner: check root node presence cmd, core: polish log core/state: use HEAD-127 as the target core/state/snapshot: improve tests cmd/geth: fix verification tool cmd/geth: use HEAD as the verification default target all: replace the bloomfilter with martin's fork cmd, core: polish code core, cmd: forcibly delete state root core/state/pruner: add hash64 core/state/pruner: fix blacklist core/state: remove blacklist cmd, core: delete trie clean cache before pruning cmd, core: fix lint cmd, core: fix rebase core/state: fix the special case for clique networks core/state/snapshot: remove useless code core/state/pruner: capping the snapshot after pruning cmd, core, eth: fixes core/rawdb: update db inspector cmd/geth: polish code core/state/pruner: fsync bloom filter cmd, core: print warning log core/state/pruner: adjust the parameters for bloom filter cmd, core: create the bloom filter by size core: polish core/state/pruner: sanitize invalid bloomfilter size cmd: address comments cmd/geth: address comments cmd/geth: address comment core/state/pruner: address comments core/state/pruner: rename homedir to datadir cmd, core: address comments core/state/pruner: address comment core/state: address comments core, cmd, tests: address comments core: address comments core/state/pruner: release the iterator after each commit core/state/pruner: improve pruner cmd, core: adjust bloom paramters core/state/pruner: fix lint core/state/pruner: fix tests core: fix rebase core/state/pruner: remove atomic rename core/state/pruner: address comments all: run go mod tidy core/state/pruner: avoid false-positive for the middle state roots core/state/pruner: add checks for middle roots cmd/geth: replace crit with error * core/state/pruner: fix lint * core: drop legacy bloom filter * core/state/snapshot: improve pruner * core/state/snapshot: polish concurrent logs to report ETA vs. hashes * core/state/pruner: add progress report for pruning and compaction too * core: fix snapshot test API * core/state: fix some pruning logs * core/state/pruner: support recovering from bloom flush fail Co-authored-by:
Péter Szilágyi <peterke@gmail.com>
-
- 03 Feb, 2021 1 commit
-
-
Marius van der Wijden authored
This pr adds consensys' gurvy bn256 variant into the code for differential fuzzing.
-
- 28 Jan, 2021 1 commit
-
-
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.
-
- 25 Jan, 2021 1 commit
-
-
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
-
- 18 Jan, 2021 1 commit
-
-
Marius van der Wijden authored
* tests/fuzzers/abi: better test generation * tests/fuzzers/abi: fixed packing issue * oss-fuzz: enable abi fuzzer
-
- 13 Jan, 2021 1 commit
-
-
Martin Holst Swende authored
-
- 27 Dec, 2020 1 commit
-
-
Martin Holst Swende authored
-