- 11 Jan, 2023 1 commit
-
-
Andrei Maiboroda authored
Implementation of https://eips.ethereum.org/EIPS/eip-3860, limit and meter initcode. This PR enables EIP-3860 as part of the Shanghai fork. Co-authored-by:
lightclient@protonmail.com <lightclient@protonmail.com> Co-authored-by:
Martin Holst Swende <martin@swende.se> Co-authored-by:
Marius van der Wijden <m.vanderwijden@live.de>
-
- 10 Jan, 2023 7 commits
-
-
Péter Szilágyi authored
In legacy (pre-merge) sync mode, headers were contiguously downloaded from the network and when no more headers were available, we checked every few seconds whether there are 64 new blocks to move the pivot. In beacon (post-merge) sync mode, we don't need to check for new skeleton headers non stop, since those re delivered one by one by the engine API. The missing code snippet from the header fetcher was to actually look at the latest head and move the pivot if it was more than 2*64-8 away. This PR adds the missing movement logic.
-
Martin Holst Swende authored
This makes non-JS tracers execute all block txs on a single goroutine. In the previous implementation, we used to prepare every tx pre-state on one goroutine, and then run the transactions again with tracing enabled. Native tracers are usually faster, so it is faster overall to use their output as the pre-state for tracing the next transaction. Co-authored-by:
Sina Mahmoodi <itz.s1na@gmail.com>
-
Martin Holst Swende authored
This PR removes the notion of fakeStorage from the state objects, and instead, for any state modifications that are needed, it simply makes the changes.
-
Martin Holst Swende authored
-
Joseph Cook authored
-
jwasinger authored
* test * crypto/bls12381: use worst case scalar for input to G1/G2 mul benchmarks
-
Mario Vega authored
-
- 09 Jan, 2023 3 commits
-
-
Péter Szilágyi authored
eth/downloader: fix unexpected skeleton header deletion
-
Péter Szilágyi authored
-
Gary Rong authored
-
- 06 Jan, 2023 4 commits
-
-
Péter Szilágyi authored
params: core: enable shanghai based on timestamps
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Marius Kjærstad authored
-
- 03 Jan, 2023 11 commits
-
-
rjl493456442 authored
* all: cleanup trie interface * eth, trie: address comments
-
Martin Holst Swende authored
-
Felix Lange authored
* p2p/discover: add more packet information in logs This adds more fields to discv5 packet logs. These can be useful when debugging multi-packet interactions. The FINDNODE message also gets an additional field, OpID for debugging purposes. This field is not encoded onto the wire. I'm also removing topic system related message types in this change. These will come back in the future, where support for them will be guarded by a config flag. * p2p/discover/v5wire: rename 'Total' to 'RespCount' The new name captures the meaning of this field better.
-
Felix Lange authored
Alarm is a timer utility that simplifies code where a timer needs to be rescheduled over and over. Doing this can be tricky with time.Timer or time.AfterFunc because the channel requires draining in some cases. Alarm is optimized for use cases where items are tracked in a heap according to their expiry time, and a goroutine with a for/select loop wants to be woken up whenever the next item expires. In this application, the timer needs to be rescheduled when an item is added or removed from the heap. Using a timer naively, these updates will always require synchronization with the global runtime timer datastructure to update the timer using Reset. Alarm avoids this by tracking the next expiry time and only modifies the timer if it would need to fire earlier than already scheduled. As an example use, I have converted p2p.dialScheduler to use Alarm instead of AfterFunc.
-
Péter Szilágyi authored
-
Péter Szilágyi authored
-
Marius van der Wijden authored
-
Marius van der Wijden authored
-
strykerin authored
-
Marius Kjærstad authored
* internal/flags: update copyright year to 2023 * cmd/geth: update copyright year to 2023
-
Ha DANG authored
-
- 29 Dec, 2022 1 commit
-
-
Marius van der Wijden authored
This change sends a HeadChainEvent when SetHead is invoked. The txpool will then reset the txnoncer on receiving the event.
-
- 28 Dec, 2022 2 commits
-
-
rjl493456442 authored
This changes moves the tracking of "deleted in this block" out from snap-only domain, so that it happens regardless of whether the execution is snapshot-backed or trie-backed.
-
Marius van der Wijden authored
* miner: allow for extradata in post-merge blocks * miner: nits * miner: remove extradata checks
-
- 27 Dec, 2022 1 commit
-
-
Zachinquarantine authored
Adds uploads to Kinetic in Launchpad, and removes the upload for 21.10 impish (not supported since July)
-
- 21 Dec, 2022 1 commit
-
-
rjl493456442 authored
This changes the StorageTrie method to return an error when the trie is not available. It used to return an 'empty trie' in this case, but that's not possible anymore under PBSS.
-
- 20 Dec, 2022 1 commit
-
-
Martin Holst Swende authored
This PR builds on #26299, but also updates the tests to the most recent version, which includes tests regarding TheMerge. This change adds checks to the beacon consensus engine, making it more strict in validating the pre- and post-headers, and not relying on the caller to have already correctly sanitized the headers/blocks.
-
- 19 Dec, 2022 2 commits
-
-
rjl493456442 authored
This PR implements resettable freezer by adding a ResettableFreezer wrapper. The resettable freezer wraps the original freezer in a way that makes it possible to ensure atomic resets. Implementation wise, it relies on the os.Rename and os.RemoveAll to atomically delete the original freezer data and re-create a new one from scratch.
-
rjl493456442 authored
This PR fixes an error in trie commit. If the trie.root is nil, it can be two possible scenarios: - The trie was empty, and no change happens - The trie was non-empty and all nodes are dropped For the latter one, we should collect the deletions and apply them into database(e.g. in PBSS).
-
- 15 Dec, 2022 1 commit
-
-
Felix Lange authored
This ensures that RPC method handlers will react to a timeout or cancelled request soon after the event occurs. Co-authored-by:
Sina Mahmoodi <itz.s1na@gmail.com>
-
- 14 Dec, 2022 2 commits
-
-
Ikko Ashimine authored
correspnding -> corresponding
-
Martin Holst Swende authored
This PR adds a check that the safetxhash that we sign corresponds to the one that is expected by the input. If it differs, it tries again with the configured chainid.
-
- 13 Dec, 2022 3 commits
-
-
Martin Holst Swende authored
-
rjl493456442 authored
* core, cmd: fill blockNumber in logs * Update core/state/statedb.go Co-authored-by:
Martin Holst Swende <martin@swende.se> * core/types: revert * core/state: improve comments Co-authored-by:
Martin Holst Swende <martin@swende.se>
-
Alex Stokes authored
A comment suggests that contract creation happens if the recipient of a call is 0x00..00 ("zero address") but in fact the sender must be nil. The zero address is a regular valid address that is commonly used as a "burn" address.
-