Commit graph

1847 commits

Author SHA1 Message Date
devopsbo3
73c4545d2f Revert "all: use rlp.DecodeBytes instead of rlp.Decode where possible (#27994)"
This reverts commit dd6f2f98aa.
2023-11-10 12:27:53 -06:00
devopsbo3
d853d17571 Revert "eth/catalyst: disable heartbeat for simulated beacon node (#27979)"
This reverts commit b71919e5e2.
2023-11-10 12:27:53 -06:00
devopsbo3
ff01eb5aa6 Revert "eth/catalyst: use block as finalization (#28000)"
This reverts commit f64d516284.
2023-11-10 12:27:53 -06:00
devopsbo3
dac3cc9389 Revert "eth/protocols/eth: stop advertising eth/66 for pathdb nodes (#28006)"
This reverts commit 2fae17c8f6.
2023-11-10 12:27:53 -06:00
devopsbo3
fda7577be1 Revert "eth/catalyst: reset to current header if chain is rewound (in dev mode) (#27992)"
This reverts commit f796c8f560.
2023-11-10 12:27:53 -06:00
devopsbo3
7daafba220 Revert "beacon/engine, eth/catalyst, miner: EIP-4788 CL/EL protocol updates (#27872)"
This reverts commit 8398b7094a.
2023-11-10 12:27:53 -06:00
devopsbo3
1a3e5cf75d Revert "eth: remove check for tdd reached on pos api block tags (#27799)"
This reverts commit 7a2909ac49.
2023-11-10 12:27:53 -06:00
devopsbo3
06e32eac66 Revert "core/state: simplify storage trie update and commit (#28030)"
This reverts commit af34ccfc12.
2023-11-10 12:27:53 -06:00
devopsbo3
ff97f768af Revert "eth/catalyst: set random value in dev mode (#27940)"
This reverts commit 12d3fe4705.
2023-11-10 12:27:53 -06:00
devopsbo3
d87ff06745 Revert "eth: abort on api operations not available in pbss-mode (#28104)"
This reverts commit 8ac50731c8.
2023-11-10 12:27:53 -06:00
devopsbo3
ddd051bf55 Revert "eth/downloader: prevent pivot moves after state commit (#28126)"
This reverts commit 7b8e28d719.
2023-11-10 12:27:53 -06:00
devopsbo3
89102a0789 Revert "eth/catalyst: fix engine API (#28135)"
This reverts commit 15b7c0b384.
2023-11-10 12:27:53 -06:00
devopsbo3
ad3dea91e7 Revert "core, eth/downloader: fix genesis state missing due to state sync (#28124)"
This reverts commit 5a51327bc5.
2023-11-10 12:27:53 -06:00
devopsbo3
b61c304d29 Revert "eth: fix typo in comment (#28146)"
This reverts commit 9f39b08c14.
2023-11-10 12:27:53 -06:00
devopsbo3
979d8b9822 Revert "eth/downloader: typo in comment (#28196)"
This reverts commit e49367e6ba.
2023-11-10 12:27:53 -06:00
devopsbo3
54c924d5b1 Revert "eth/fetcher: allow underpriced transactions in after timeout (#28097)"
This reverts commit 5b22449bca.
2023-11-10 12:27:53 -06:00
devopsbo3
42f551c0c9 Revert "eth/downloader: remove header rollback mechanism (#28147)"
This reverts commit 832f048414.
2023-11-10 12:27:53 -06:00
devopsbo3
0cea8194ff Revert "core, accounts, eth, trie: handle genesis state missing (#28171)"
This reverts commit bcc2e34f7e.
2023-11-10 12:27:53 -06:00
devopsbo3
ba46f6ee27 Revert "core, eth: typos and some code formatting (#28201)"
This reverts commit afa7d2ef82.
2023-11-10 12:27:53 -06:00
devopsbo3
e5173a1c71 Revert "eth/catalyst: add validation error in new paylaod hash mismatch (#28226)"
This reverts commit aeff118aa9.
2023-11-10 12:27:53 -06:00
devopsbo3
f9721e1175 Revert "cmd, eth: switch the dev synctarget to hash from block (#28209)"
This reverts commit f7547536c8.
2023-11-10 12:27:53 -06:00
devopsbo3
69d44639d0 Revert "cmd/devp2p, eth: drop eth/66 (#28239)"
This reverts commit 293fc408d9.
2023-11-10 12:27:53 -06:00
devopsbo3
1af60990dc Revert "core, eth, miner: start propagating and consuming blob txs (#28243)"
This reverts commit 723fd06e12.
2023-11-10 12:27:53 -06:00
devopsbo3
96d19455c0 Revert "eth: when snap is complaining for missing eth, be verbose about the details (#28249)"
This reverts commit 42fdae7d11.
2023-11-10 12:27:53 -06:00
devopsbo3
d847f283d9 Revert "eth, params: fix typos (#28286)"
This reverts commit 7aa36bb86b.
2023-11-10 12:27:53 -06:00
devopsbo3
057d5137bd Revert "all: move light.NodeSet to trienode.ProofSet (#28287)"
This reverts commit 6ffa8094b3.
2023-11-10 12:27:53 -06:00
devopsbo3
fda9f7de26 Revert "eth: enforce announcement metadatas and drop peers violating the protocol (#28261)"
This reverts commit 41820a9bd6.
2023-11-10 12:27:53 -06:00
devopsbo3
9eb510dfba Revert "trie: remove owner and binary marshaling from stacktrie (#28291)"
This reverts commit bc238e6ddb.
2023-11-10 12:27:53 -06:00
devopsbo3
ba42dbf359 Revert "eth/fetcher: throttle tx fetches to 128KB responses (#28304)"
This reverts commit 32f701ec23.
2023-11-10 12:27:53 -06:00
devopsbo3
7f8e001d1f Revert "eth/fetcher: fix typo"
This reverts commit 73acfd1293.
2023-11-10 12:27:53 -06:00
devopsbo3
eaadb8f260 Revert "cmd, core: resolve scheme from a read-write database (#28313)"
This reverts commit 9a372b6518.
2023-11-10 12:27:53 -06:00
devopsbo3
a91c62e79a Revert "eth/protocols/snap: fix snap sync failure on empty storage range (#28306)"
This reverts commit 631db5c5ae.
2023-11-10 12:27:53 -06:00
devopsbo3
d60605e9bb Revert "trie: make rhs-proof align with last key in range proofs (#28311)"
This reverts commit 51d0547794.
2023-11-10 12:27:53 -06:00
devopsbo3
ef407a9ff0 Revert "eth/fetcher: only make noise big mismatches (#28356)"
This reverts commit eb783fb381.
2023-11-10 12:27:53 -06:00
devopsbo3
ed7df9fe57 Revert "eth/fetcher: fix fetcher timeout (#28220)"
This reverts commit ddd8a08930.
2023-11-10 12:27:53 -06:00
devopsbo3
b1a0cd4d6f Revert "core, trie, eth: refactor stacktrie constructor (#28350)"
This reverts commit eed2347f95.
2023-11-10 12:27:53 -06:00
devopsbo3
5bf64a8efd Revert "eth/fetcher: downgrade stale txs log from warn to debug (#28364)"
This reverts commit f993744a05.
2023-11-10 12:27:53 -06:00
devopsbo3
75890f77df Revert "eth/filters: fix flaky test TestPendingTxFilterDeadlock (#28376)"
This reverts commit 492977c671.
2023-11-10 12:27:53 -06:00
devopsbo3
26cd4e60f8 Revert "core, eth, trie: filter out boundary nodes and remove dangling nodes in stacktrie (#28327)"
This reverts commit 6fe5774fb2.
2023-11-10 12:27:53 -06:00
devopsbo3
a674f74e80 Revert "core: add basic chain history support in GenerateChain (#28428)"
This reverts commit 3b8819470f.
2023-11-10 12:27:53 -06:00
devopsbo3
b2b7ffdb0d Revert "eth/tracers: add position field for callTracer logs (#28389)"
This reverts commit 15dad0e73c.
2023-11-10 12:27:53 -06:00
devopsbo3
0af3866d07 Revert "eth/filters: eth_getLogs fast exit for invalid block range (#28386)"
This reverts commit df4c9307d3.
2023-11-10 12:27:53 -06:00
devopsbo3
e05566028c Revert "eth: set networkID to chainID by default (#28250)"
This reverts commit 617e305218.
2023-11-10 12:27:53 -06:00
devopsbo3
854aeb14a9 Revert "eth/filters: exit early if topics-filter has more than 4 topics (#28494)"
This reverts commit 1992836381.
2023-11-10 12:27:53 -06:00
Delweng
1992836381 eth/filters: exit early if topics-filter has more than 4 topics (#28494)
Currently, geth's will return `[]` for any `len(topics) > 4` log filter. The EVM only supports up to four logs, via LOG4 opcode, so larger criterias fail. This change makes the filter query exit early in those cases.
2023-11-10 11:09:46 -06:00
Marius van der Wijden
617e305218 eth: set networkID to chainID by default (#28250)
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-11-10 11:09:46 -06:00
Delweng
df4c9307d3 eth/filters: eth_getLogs fast exit for invalid block range (#28386) 2023-11-10 11:09:46 -06:00
Alvaro Sevilla
15dad0e73c eth/tracers: add position field for callTracer logs (#28389)
Currently, one can use the "withLogs" parameter to include logs in the
callTracer results, which allows the user to see at which trace level
was each log emitted.
This commit adds a position field to the logs which determine
the exact ordering of a call's logs and its subcalls. This would
be useful e.g. for explorers wishing to display the flow of execution.

Co-authored-by: jsvisa <delweng@gmail.com>
2023-11-10 11:09:46 -06:00
Felix Lange
3b8819470f core: add basic chain history support in GenerateChain (#28428)
This change improves GenerateChain to support internal chain history access (ChainReader)
for the consensus engine and EVM.

GenerateChain takes a `parent` block and the number of blocks to create. With my changes,
the consensus engine and EVM can now access blocks from `parent` up to the block currently
being generated. This is required to make the BLOCKHASH instruction work, and also needed
to create real clique chains.  Clique uses chain history to figure out if the current signer is in-turn,
for example.

I've also added some more accessors to BlockGen. These are helpful when creating transactions:

- g.Signer returns a signer instance for the current block
- g.Difficulty returns the current block difficulty
- g.Gas returns the remaining gas amount

Another fix in this commit concerns the receipts returned by GenerateChain. The receipts now
have properly derived fields (BlockHash, etc.) and should generally match what would be
returned by the RPC API.
2023-11-10 11:09:46 -06:00
rjl493456442
6fe5774fb2 core, eth, trie: filter out boundary nodes and remove dangling nodes in stacktrie (#28327)
* core, eth, trie: filter out boundary nodes in stacktrie

* eth/protocol/snap: add comments

* Update trie/stacktrie.go

Co-authored-by: Martin Holst Swende <martin@swende.se>

* eth, trie: remove onBoundary callback

* eth/protocols/snap: keep complete boundary nodes

* eth/protocols/snap: skip healing if the storage trie is already complete

* eth, trie: add more metrics

* eth, trie: address comment

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-11-10 11:09:46 -06:00