- 07 Jan, 2022 2 commits
-
-
Péter Szilágyi authored
eth: continue after whitelist check
-
Martin Holst Swende authored
-
- 06 Jan, 2022 4 commits
-
-
sanskarkhare authored
Co-authored-by:
sanskar khare <sanskarkhare@sanskars-MacBook-Air.local>
-
Dmitriy Fishman authored
-
Sam authored
-
Péter Szilágyi authored
trie, core, eth: use db.has over db.get where possible
-
- 05 Jan, 2022 7 commits
-
-
Felix Lange authored
-
Felix Lange authored
-
Martin Holst Swende authored
-
Sina Mahmoodi authored
Fixes #24161
-
Sina Mahmoodi authored
Fixes #24124
-
Felix Lange authored
SyncProgress was modified in PR #23576 to add the fields reported for snap sync. The PR also changed ethclient to use the SyncProgress struct directly instead of wrapping it for hex-decoding. This broke the SyncProgress method. Fix it by putting back the custom wrapper. While here, also put back the fast sync related fields because SyncProgress is stable API and thus removing fields is not allowed. Fixes #24180 Fixes #24176
-
Sina Mahmoodi authored
Fixes #24167 New behaviour is that the endpoint returns results only for available blocks without returning an error when it doesn't find a block. Note we skip any block after a non-existent block. This adds a header fetch for every block in range (even if header is not needed). Alternatively, we could do the check in every field's resolver method to avoid this overhead.
-
- 04 Jan, 2022 3 commits
-
-
Martin Holst Swende authored
Fixes #24159 Co-authored-by:
Felix Lange <fjl@twurst.com>
-
peter cresswell authored
Change two instances of the word `calulcated` to `calculated`.
-
Water authored
mispelled words in comments: th enext
-
- 26 Dec, 2021 1 commit
-
-
zgfzgf authored
This orders the items in slice definition same as the enum values.
-
- 23 Dec, 2021 2 commits
-
-
Felix Lange authored
-
Felix Lange authored
-
- 22 Dec, 2021 3 commits
-
-
Alexey Shekhirin authored
-
Felix Lange authored
-
Felix Lange authored
-
- 20 Dec, 2021 1 commit
-
-
fomotrader authored
-
- 17 Dec, 2021 6 commits
-
-
Marius van der Wijden authored
-
Ikko Ashimine authored
-
Sina Mahmoodi authored
Fixes #22580 Co-authored-by:
Felix Lange <fjl@twurst.com>
-
Andrei Maiboroda authored
* core/vm: Define 0xfe opcode as INVALID * core/vm: Remove opInvalid as opUndefined handles it Co-authored-by:
Alex Beregszaszi <alex@rtfs.hu>
-
Paweł Bylica authored
* core/vm: reverse bit order in bytes of code bitmap This bit order is more natural for bit manipulation operations and we can eliminate some small number of CPU instructions. * core/vm: drop lookup table
- 16 Dec, 2021 1 commit
-
-
Marius van der Wijden authored
-
- 15 Dec, 2021 2 commits
-
-
Martin Holst Swende authored
-
Roman Mazalov authored
The "t" key overrides the log message time in JSON output. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- 14 Dec, 2021 4 commits
-
-
Felföldi Zsolt authored
Fixes #23848
-
Martin Holst Swende authored
-
ucwong authored
-
jovijovi authored
* consensus: use the maxGasLimit constant to check the header.GasLimit to avoid creating new variables repeatedly * consensus: check the header.GasLimit by the public constant MaxGasLimit * consensus: check the header.GasLimit by the constant MaxGasLimit
-
- 11 Dec, 2021 1 commit
-
-
Martin Holst Swende authored
Previously, Ctrl-C (SIGINT) was ignored during JS execution, so it was not possible to get out of infinite loops in the console. With this change, Ctrl-C now interrupts JS. Fixes #23344 Co-authored-by:
Sina Mahmoodi <itz.s1na@gmail.com> Co-authored-by:
Felix Lange <fjl@twurst.com>
-
- 09 Dec, 2021 1 commit
-
-
Alex Beregszaszi authored
-
- 07 Dec, 2021 2 commits
-
-
Martin Holst Swende authored
This PR reduces the amount of work we do when answering header queries, e.g. when a peer is syncing from us. For some items, e.g block bodies, when we read the rlp-data from database, we plug it directly into the response package. We didn't do that for headers, but instead read headers-rlp, decode to types.Header, and re-encode to rlp. This PR changes that to keep it in RLP-form as much as possible. When a node is syncing from us, it typically requests 192 contiguous headers. On master it has the following effect: - For headers not in ancient: 2 db lookups. One for translating hash->number (even though the request is by number), and another for reading by hash (this latter one is sometimes cached). - For headers in ancient: 1 file lookup/syscall for translating hash->number (even though the request is by number), and another for reading the header itself. After this, it also performes a hashing of the header, to ensure that the hash is what it expected. In this PR, I instead move the logic for "give me a sequence of blocks" into the lower layers, where the database can determine how and what to read from leveldb and/or ancients. There are basically four types of requests; three of them are improved this way. The fourth, by hash going backwards, is more tricky to optimize. However, since we know that the gap is 0, we can look up by the parentHash, and stlil shave off all the number->hash lookups. The gapped collection can be optimized similarly, as a follow-up, at least in three out of four cases. Co-authored-by:
Felix Lange <fjl@twurst.com>
-
rjl493456442 authored
-