- 16 Jan, 2023 7 commits
-
-
ucwong authored
-
Marius Kjærstad authored
-
Ikko Eltociear Ashimine authored
-
Seungbae Yu authored
-
ucwong authored
-
Zachinquarantine authored
-
Martin Holst Swende authored
This PR does a few things. It fixes a shutdown-order flaw in the chainfreezer. Previously, the chain-freezer would shutdown the freezer backend first, and then signal for the loop to exit. This can lead to a scenario where the freezer tries to fsync closed files, which is an error-conditon that could lead to exit via log.Crit. It also makes the printout more detailed when truncating 'dangling' items, by showing the exact number instead of approximate MB. This PR also adds calls to fsync files before closing them, and also makes the `db inspect` command slightly more robust.
-
- 15 Jan, 2023 1 commit
-
-
David Hwang authored
update link to the installation instructions
-
- 13 Jan, 2023 3 commits
-
-
Marius van der Wijden authored
* internal/flags: use filepath.Clean instead of path.Clean * internal/flags: fix windows pipe issue * internal/flags: modify test for windows * internal/flags: use backticks, fix test
-
rjl493456442 authored
This PR fixes an issue which might result in data lost in freezer. Whenever mutation happens in freezer, all data will be written into head data file and it will be rotated with a new one in case the size of file reaches the threshold. Theoretically, the rotated old data file should be fsync'd to prevent data loss. In freezer.Sync function, we only fsync: (1) index file (2) meta file and (3) head data file. So this PR forcibly fsync the head data file if mutation happens in the boundary of data file.
-
rjl493456442 authored
-
- 12 Jan, 2023 4 commits
-
-
Felix Lange authored
Other clients do not accept a parameter value of null for this array.
-
rjl493456442 authored
-
lightclient authored
-
Andrew Ashikhmin authored
-
- 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 10 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
-