lightclient
fbdeff99ce
cmd/evm: calc base fee if parent data is present ( #26051 )
...
Currently, in order to chain together sequential valid t8n transitions the caller must manually calculate the block base fee. This PR adds support for the necessary parent fee market data to calculate the base fee for the current transition.
Concretely, env is extended to accept the following:
parentBaseFee
parentGasUsed
parentGasLimit
Example usage can be found in ./cmd/evm/testdata/25.
Co-authored-by: Martin Holst Swende <martin@swende.se>
2 years ago
Delweng
b196ad1c16
all: add whitespace linter ( #25312 )
...
* golangci: typo
Signed-off-by: Delweng <delweng@gmail.com>
* golangci: add whietspace
Signed-off-by: Delweng <delweng@gmail.com>
* *: rm whitesapce using golangci-lint
Signed-off-by: Delweng <delweng@gmail.com>
* cmd/puppeth: revert accidental resurrection
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2 years ago
Marius van der Wijden
d8f963811d
cmd, params: implement Gray Glacier hard-fork (EIP-5133) ( #25088 )
...
* cmd/geth, params: implement Gray Glacier (EIP-5133)
* cmd/evm: add gray glacier tests
* params: nitpicks
* params: fixes
2 years ago
Felix Lange
9244d5cd61
all: update license headers and AUTHORS from git history ( #24947 )
2 years ago
Martin Holst Swende
5157d4540a
cmd/evm: make evm t8n handle post-merge transitions ( #24546 )
...
This adds the ability to run --state.fork=Merged, and have post-merge rules apply. When doing so, it also requires the input env to contain currentRandom, and enforces the currentDifficulty to be omitted or zero.
3 years ago
lightclient
23f69c6db0
cmd/evm: add support for signing transactions in the unprotected format ( #23937 )
...
* cmd/evm: add support for signing transactions in the unprotected format
* cmd/evm: simplify signing of unprotected txs
3 years ago
lightclient
441c7f2b0f
cmd/evm: add b11r tool ( #23843 )
...
evm block-builder (a.k.a b11r) is a utility to help assemble blocks, for use during the test-creation process.
3 years ago
Martin Holst Swende
32150f8aa9
cmd/geth, cmd/evm, params: implement Arrow Glacier (EIP 4345) ( #23810 )
...
This PR adds support for ArrowGlacier, as defined by
https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md
https://eips.ethereum.org/EIPS/eip-4345
> Starting with FORK_BLOCK_NUMBER the client will calculate the difficulty based on a fake block number suggesting to the client that the difficulty bomb is adjusting 10,700,000 blocks later than the actual block number.
This also adds support for evm t8n to return the calculated difficulty, so it can be used to construct test.
3 years ago
Martin Holst Swende
52c02ccb1f
cmd/evm: handle rlp errors in t9n ( #23771 )
...
* cmd/evm: handle rlp errors in t9n
* cmd/evm/testdata: fix readme
3 years ago
Martin Holst Swende
84d8eb2ca8
cmd/evm: add 256-bit field validations on transactions (t9n) ( #23743 )
...
* cmd/evm: add 256-bit field validations on transactions (t9n)
* cmd/evm: validate gas*gasPrice, return intrinsic gas usage
* cmd/evm: address review comment
3 years ago
Martin Holst Swende
64da037e99
cmd/evm: stricter transaction validation ( #23694 )
...
* cmd/evm: t9n: validate transaction intrinsic gas
* cmd/evm: t9n: stricter tx validation
3 years ago
Martin Holst Swende
babe9b993e
cmd/evm: transaction validation tool ( #23494 )
...
* cmd/evm: transaction validation tool
* cmd/evm: add hash to t9n tool
* cmd/evm: lint nits
* cmd/evm: nitpicks
3 years ago
Martin Holst Swende
4d88974864
cmd/evm: add tests for evm t8n ( #23507 )
3 years ago