Commit graph

252 commits

Author SHA1 Message Date
devopsbo3
496eb2bbf6 Revert "cmd/evm: fix typos in docs (#27478)"
This reverts commit f588aec3cb.
2023-11-10 12:27:53 -06:00
devopsbo3
2662e0fa09 Revert "cmd/evm: fix typos in documentation (#27501)"
This reverts commit d27401046d.
2023-11-10 12:27:53 -06:00
devopsbo3
aada1b3727 Revert "cmd, core/state, eth, tests, trie: improve state reader (#27428)"
This reverts commit fc0431059f.
2023-11-10 12:27:53 -06:00
devopsbo3
7f610edfe2 Revert "accounts, cmd/evm: fix docstrings (#27703)"
This reverts commit 9e4c31366e.
2023-11-10 12:27:53 -06:00
devopsbo3
18c9dc5df3 Revert "core: replace instances of 'suicide' with 'selfdestruct' to improve code consistency. (#27716)"
This reverts commit 50cb341607.
2023-11-10 12:27:53 -06:00
devopsbo3
f324430077 Revert "core, tests: EIP-4844 transaction processing logic (#27721)"
This reverts commit 1481df630b.
2023-11-10 12:27:53 -06:00
devopsbo3
ddb6cdee96 Revert "cmd/evm/testdata: fix typos in docs (#27742)"
This reverts commit 04fcbcb8e6.
2023-11-10 12:27:53 -06:00
devopsbo3
9abe1d02c7 Revert "all: expose block number information to statedb (#27753)"
This reverts commit 108b77bca6.
2023-11-10 12:27:53 -06:00
devopsbo3
166e2c09a6 Revert "consensus/misc: move eip1559 into a package (#27828)"
This reverts commit b2f7349a6b.
2023-11-10 12:27:53 -06:00
devopsbo3
ff16a537c8 Revert "cmd/evm: set ExcessBlobGas from env (#27796)"
This reverts commit 1680bf1b71.
2023-11-10 12:27:53 -06:00
devopsbo3
d586a671a3 Revert "all: activate pbss as experimental feature (#26274)"
This reverts commit 1053526246.
2023-11-10 12:27:53 -06:00
devopsbo3
016aaa607a Revert "core, params, beacon/engine: implement EIP 4788 BeaconRoot (#27849)"
This reverts commit 2e9477f46b.
2023-11-10 12:27:53 -06:00
devopsbo3
ae10f30d23 Revert "cmd/evm: add back stateroot to jsonl-output (#27968)"
This reverts commit f28ec27bcd.
2023-11-10 12:27:53 -06:00
devopsbo3
2755593ba0 Revert "cmd/evm: fix some issues with the evm run command (#28109)"
This reverts commit 0264a9ad74.
2023-11-10 12:27:53 -06:00
devopsbo3
d94fd848ae Revert "params: update 4788 beacon roots contract addr (#28205)"
This reverts commit 97e54bda96.
2023-11-10 12:27:53 -06:00
devopsbo3
95a9f4c183 Revert "core: implement BLOBBASEFEE opcode (0x4a) (#28098)"
This reverts commit 5585e79348.
2023-11-10 12:27:53 -06:00
devopsbo3
3a63bad886 Revert "cmd/evm: cancun-updates for b11r and t8n -tools (#28195)"
This reverts commit e457ceff01.
2023-11-10 12:27:53 -06:00
devopsbo3
da34ca641c Revert "cmd/evm/internal/t8ntoo: tiny bugfix for difficulty field (#28245)"
This reverts commit f22ae6a9e3.
2023-11-10 12:27:53 -06:00
devopsbo3
408b7aef0e Revert "accounts, cmd: fix typos (#28300)"
This reverts commit a067689e26.
2023-11-10 12:27:53 -06:00
devopsbo3
eb03fc4867 Revert "tests: update execution-spec-tests to 1.0.5 (#28337)"
This reverts commit 077f13f68a.
2023-11-10 12:27:53 -06:00
devopsbo3
2ea46eef68 Revert "cmd: fix typos (#28323)"
This reverts commit e95e022a8a.
2023-11-10 12:27:53 -06:00
devopsbo3
39eec21334 Revert "cmd/evm: make t8ntool handle transaction decoding errors better (#28397)"
This reverts commit b5c13fa95c.
2023-11-10 12:27:53 -06:00
devopsbo3
352f58a03a Revert "all: make vendored copy of reexec (#28382)"
This reverts commit 5f793d2339.
2023-11-10 12:27:53 -06:00
devopsbo3
19a5569510 Revert "cmd/evm: add --run option to blocktest command (#28421)"
This reverts commit 36d01e79d5.
2023-11-10 12:27:53 -06:00
devopsbo3
409350668b Revert "cmd/evm: allow state dump regardless if test passes in statetest (#28484)"
This reverts commit d362d8e34e.
2023-11-10 12:27:53 -06:00
Wei Tang
d362d8e34e cmd/evm: allow state dump regardless if test passes in statetest (#28484)
This change makes it so that when executing state tess, state is always dumped out if the corresponding flag is set.
2023-11-10 11:09:46 -06:00
Mario Vega
36d01e79d5 cmd/evm: add --run option to blocktest command (#28421)
Co-authored-by: lightclient <lightclient@protonmail.com>
2023-11-10 11:09:46 -06:00
Martin Holst Swende
5f793d2339 all: make vendored copy of reexec (#28382)
a little copying is better than a little dependency

-- go proverb

We have this dependency on docker, a.k.a moby: a gigantic library, and we only need ~70 LOC,
so here I tried moving it inline instead.

Co-authored-by: Felix Lange <fjl@twurst.com>
2023-11-10 11:09:46 -06:00
Martin Holst Swende
b5c13fa95c cmd/evm: make t8ntool handle transaction decoding errors better (#28397)
This change closes https://github.com/ethereum/go-ethereum/issues/27730 . By using an iterator instead of a slice of transactions, we can better handle the case when an individual transaction (within an otherwise well-formed RLP-list) cannot be decoded.
2023-11-10 11:09:46 -06:00
xiaolou86
e95e022a8a cmd: fix typos (#28323) 2023-11-10 11:09:46 -06:00
Martin Holst Swende
077f13f68a tests: update execution-spec-tests to 1.0.5 (#28337)
Updates execution-spec-tests to 1.0.5: https://github.com/ethereum/execution-spec-tests/releases/tag/v1.0.5, switching to develop which contains Cancun tests (which are also enabled in this change).
2023-11-10 11:09:46 -06:00
vuittont60
a067689e26 accounts, cmd: fix typos (#28300) 2023-11-10 11:09:46 -06:00
tactical_retreat
f22ae6a9e3 cmd/evm/internal/t8ntoo: tiny bugfix for difficulty field (#28245) 2023-11-10 11:09:46 -06:00
lightclient
e457ceff01 cmd/evm: cancun-updates for b11r and t8n -tools (#28195)
This change updates `evm b11r` (blockbuilder) and `evm t8n` (transition) tools to contain cancun updates (e.g. new header fields)
---------

Co-authored-by: Mario Vega <marioevz@gmail.com>
2023-11-10 11:09:46 -06:00
Marius van der Wijden
5585e79348 core: implement BLOBBASEFEE opcode (0x4a) (#28098)
Implements "EIP-7516: BLOBBASEFEE opcode" for cancun, as per spec: https://eips.ethereum.org/EIPS/eip-7516
2023-11-10 11:09:46 -06:00
lightclient
97e54bda96 params: update 4788 beacon roots contract addr (#28205)
This change contains the final (?) address for 4788 beacon root contract. The update to the EIP is being tracked here: https://github.com/ethereum/EIPs/pull/7672

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-11-10 11:09:46 -06:00
Felix Lange
0264a9ad74 cmd/evm: fix some issues with the evm run command (#28109)
* cmd/evm: improve flags handling

This fixes some issues with flags in cmd/evm. The supported flags did not
actually show up in help output because they weren't categorized. I'm also
adding the VM-related flags to the run command here so they can be given
after the subcommand name. So it can be run like this now:

   ./evm run --code 6001 --debug

* cmd/evm: enable all forks by default in run command

The default genesis was just empty with no forks at all, which is annoying because
contracts will be relying on opcodes introduced in a fork. So this changes the default to
have all forks enabled.

* core/asm: fix some issues in the assembler

This fixes minor bugs in the old assembler:

- It is now possible to have comments on the same line as an instruction.
- Errors for invalid numbers in the jump instruction are reported better
- Line numbers in errors were off by one
2023-11-10 11:09:46 -06:00
Martin Holst Swende
f28ec27bcd cmd/evm: add back stateroot to jsonl-output (#27968)
The PR #26274 broke the evm statetest command a bit, in that it stopped spitting out the stateroot following a non-successful statetest-execution. 

This PR changes it back, so the stateroot is unconditionally output on stderr, and makes it so fuzzing works again.
2023-11-10 11:09:46 -06:00
Martin Holst Swende
2e9477f46b core, params, beacon/engine: implement EIP 4788 BeaconRoot (#27849)
This change implements "EIP 4788 : Beacon block root in the EVM". It implements version-2 of EPI-4788, main difference being that the contract is an actual contract rather than a precompile, as in #27289.
2023-11-10 11:09:46 -06:00
rjl493456442
1053526246 all: activate pbss as experimental feature (#26274)
* all: activate pbss

* core/rawdb: fix compilation error

* cma, core, eth, les, trie: address comments

* cmd, core, eth, trie: polish code

* core, cmd, eth: address comments

* cmd, core, eth, les, light, tests: address comment

* cmd/utils: shorten log message

* trie/triedb/pathdb: limit node buffer size to 1gb

* cmd/utils: fix opening non-existing db

* cmd/utils: rename flag name

* cmd, core: group chain history flags and fix tests

* core, eth, trie: fix memory leak in snapshot generation

* cmd, eth, internal: deprecate flags

* all: enable state tests for pathdb, fixes

* cmd, core: polish code

* trie/triedb/pathdb: limit the node buffer size to 256mb

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2023-11-10 11:09:46 -06:00
Delweng
1680bf1b71 cmd/evm: set ExcessBlobGas from env (#27796)
Sets the `currentExcessBlobGas` from env, alternatively calculates it based on `parentExcessBlobGas` and `parentBlobGasUsed`. It then emits the `currentExcessBlobGas` and `currentBlobGasUsed` into the output, to be used as parent-values for a future iteration. 

Closes #27785
Closes #27783

---------

Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2023-11-10 11:09:46 -06:00
Delweng
b2f7349a6b consensus/misc: move eip1559 into a package (#27828)
* consensus/misc: move eip1559 as a sub directory

Signed-off-by: jsvisa <delweng@gmail.com>

* consensus/misc: package name

Signed-off-by: jsvisa <delweng@gmail.com>

* all: eip1559

Signed-off-by: jsvisa <delweng@gmail.com>

---------

Signed-off-by: jsvisa <delweng@gmail.com>
2023-11-10 11:09:46 -06:00
rjl493456442
108b77bca6 all: expose block number information to statedb (#27753)
* core/state: clean up

* all: add block number infomration to statedb

* core, trie: rename blockNumber to block
2023-11-10 11:09:46 -06:00
Pierre Grimaud
04fcbcb8e6 cmd/evm/testdata: fix typos in docs (#27742) 2023-11-10 11:09:46 -06:00
Martin Holst Swende
1481df630b core, tests: EIP-4844 transaction processing logic (#27721)
This updates the reference tests to the latest version and also adds logic
to process EIP-4844 blob transactions into the state transition. We are now
passing most Cancun fork tests.

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Co-authored-by: Felix Lange <fjl@twurst.com>
2023-11-10 11:09:46 -06:00
jwasinger
50cb341607 core: replace instances of 'suicide' with 'selfdestruct' to improve code consistency. (#27716)
---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
2023-11-10 11:09:46 -06:00
cui fliter
9e4c31366e accounts, cmd/evm: fix docstrings (#27703)
fix function name in comment

Signed-off-by: cui fliter <imcusg@gmail.com>
2023-11-10 11:09:46 -06:00
rjl493456442
fc0431059f cmd, core/state, eth, tests, trie: improve state reader (#27428)
The state availability is checked during the creation of a state reader.

-    In hash-based database, if the specified root node does not exist on disk disk, then
    the state reader won't be created and an error will be returned.

-    In path-based database, if the specified state layer is not available, then the
    state reader won't be created and an error will be returned.

This change also contains a stricter semantics regarding the `Commit` operation: once it has been performed, the trie is no longer usable, and certain operations will return an error.
2023-11-10 11:09:46 -06:00
John Chase
d27401046d cmd/evm: fix typos in documentation (#27501) 2023-11-10 11:09:46 -06:00
cui fliter
f588aec3cb cmd/evm: fix typos in docs (#27478)
fix some typos

Signed-off-by: cui fliter <imcusg@gmail.com>
2023-11-10 11:09:46 -06:00