Guillaume Ballet
95d7f39db5
set verkle mode from genesis with override ( #308 )
...
* set verkle mode from genesis with override
* make linter happy
* fix more linter snafu
2024-05-08 13:25:15 +02:00
Guillaume Ballet
bea12cc674
fix: decide if genesis is verkle using genesis timestamp ( #290 )
...
* fix: decide if genesis is verkle using genesis timestamp
* fix linter message
2024-05-08 13:25:15 +02:00
Guillaume Ballet
7d02a604d7
fix: support a verkle pre-tree at the conversion block ( #313 )
...
* fix: support a verkle pre-tree at the conversion block
* make linter happy
2024-05-08 13:25:15 +02:00
Guillaume Ballet
ac3f26947d
implement eip 2935 ( #342 )
...
* implement eip 2935
* add touched historical contract slot to the witness
2024-05-08 13:25:15 +02:00
Guillaume Ballet
85a7198c2d
test: check witness when contract creation fails ( #333 )
2024-05-08 13:25:15 +02:00
Guillaume Ballet
14d5a01775
change timeout to 20 minutes
2024-05-08 13:25:15 +02:00
Guillaume Ballet
8f2ffed7bb
only add the coinbase to the witness if the block reward > 0 ( #332 )
2024-05-08 13:25:15 +02:00
Guillaume Ballet
a5d74825aa
fix: return error if witness costs OOG in instructions ( #319 )
2024-05-08 13:25:15 +02:00
Guillaume Ballet
7757a53d47
force activation of EIP-6780 ( #338 )
...
* force activation of EIP-6780
* rework the PR in a more manageable way
2024-05-08 13:25:15 +02:00
Ignacio Hagopian
f46632148c
accesswitness: avoid charging cost for origin and target ( #334 )
...
* accesswitness: avoid charging cost for origin and target
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
* make the linter happy
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
---------
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2024-05-08 13:25:15 +02:00
Ignacio Hagopian
d6477cdc7d
mod: move from gballet/go-verkle to ethereum/go-verkle ( #335 )
...
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2024-05-08 13:25:15 +02:00
Ignacio Hagopian
6843ed14e2
vm: fix access witness recording ( #337 )
...
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2024-05-08 13:25:15 +02:00
Guillaume Ballet
f95255839a
fix: main storage offset value ( #329 )
2024-05-08 13:25:15 +02:00
Ignacio Hagopian
afc6067590
mod: update go-verkle ( #312 )
...
* update go-verkle
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
* fix breaking apis
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
* fix apis
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
* avoid test failing due to timeouts
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
---------
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2024-05-08 13:25:14 +02:00
Guillaume Ballet
4815fe2686
remove unused EndVerkleTransition in blockchain.go ( #301 )
2024-05-08 13:25:14 +02:00
Ignacio Hagopian
4f9beb0526
proofs: remove post-values in Multiproof ( #297 )
...
* update proof generation
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
* simplification and comment
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
* update go-verkle
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
---------
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2024-05-08 13:25:14 +02:00
Ignacio Hagopian
e1dd462e1b
Update go-verkle ( #296 )
...
* update go-verkle
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
* ci: fix golangci-linter version
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
---------
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2024-05-08 13:25:14 +02:00
Ignacio Hagopian
e437264a8c
remove pre-state tree warmup ( #293 )
...
* remove pre-state tree warmup
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
* update go-verkle
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
---------
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2024-05-08 13:25:14 +02:00
Guillaume Ballet
a29f5d60c2
Shanghai time workaround ( #294 )
...
* add workaround to use --override.prague
* fix typo in comments
* fix: enable overrides at genesis time
2024-05-08 13:25:14 +02:00
Guillaume Ballet
0d5126776f
add workaround to use --override.prague ( #292 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
faee2f9587
fix: return serialized root in state root, not its mapping to a scalar field ( #289 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
189a4770dd
fix: incorrect access copy ( #288 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
49fdfff681
fix: make sure AccessWitness isn't nil when calling RPC methods ( #287 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
328e180429
upgrade deps to get proof generation absence/presence bugfix
2024-05-08 13:25:14 +02:00
Guillaume Ballet
c82ff997d3
fix: ensure read-only values are resolved in post trie ( #285 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
acb4a30555
fix: activate verkle at genesis ( #284 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
990395c688
workaround: disable check for root presence ( #283 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
5032dd480b
achieving perfection
2024-05-08 13:25:14 +02:00
Guillaume Ballet
1b72c34485
fix more CI complaints
2024-05-08 13:25:14 +02:00
Guillaume Ballet
c94a9dd78b
fix: a couple of CI issues
2024-05-08 13:25:14 +02:00
Guillaume Ballet
2403a275f0
fix linter message
2024-05-08 13:25:14 +02:00
Guillaume Ballet
eb03735429
fix: need commitment in tests ( #282 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
f8bacb2c18
remove StateDB as an extra param to Prepare ( #281 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
713db1bbbc
fix: add ProofInBlocks to chain config ( #280 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
9db5d5c357
port kaustinen code on top of shapella-rebased branch
...
activate proof generation on fork + remove code dups
use go-verkle's post-state API to verify proofs (#262 )
use prague as the verkle activation fork (#263 )
upgrade to latest go-ipa
activate verkle transition in "miner" (#265 )
fix: do not force cancunTime upon verkle activation
workaround: do not use root translation in replay
workaround: deactivate overlay transition for now
fixes from trying to get the devnet to work (#267 )
this line was left out from the previous commit
upgrade to go-verkle with fixed newvalue serialization
fix: ensure point cache isn't nil in copy (#268 )
fix: dependency cycle in tests (#269 )
upgrade to latest go-verkle
fix: write trie preimage data to db (#274 )
fix: zero-root in produced block + sync (#275 )
upgrade go-ipa
fix build
fix typo
include review feedback
add switch to add proofs to blocks (#278 )
add fee recipient to witness (#279 )
touch all fields in withdrawal account header (#277 )
2024-05-08 13:25:14 +02:00
Guillaume Ballet
b7648a503e
quell zero-tree message
2024-05-08 13:25:14 +02:00
Guillaume Ballet
b4c3b59a85
add pre-pbss rebase branches to CI ( #270 )
...
* add post-pbss rebase branches to CI
* fix go version in CI
* fix linter issues
* upgrade go version to 1.21.1 to avoid github deploy error
2024-05-08 13:25:14 +02:00
Guillaume Ballet
9eee5a360b
core: move overlay conversion code to its own file ( #266 )
2024-05-08 13:25:14 +02:00
Ignacio Hagopian
ed36c23480
core/state: rewrite a new optimized keyValueMigrator ( #256 )
...
* trie/utils: add helper to calculate code tree indices
* core/state: rewrite optimized version of keyValueMigrator
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
* trie/verkle: remove uint256 allocs (#257 )
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
---------
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2024-05-08 13:25:14 +02:00
Guillaume Ballet
f090ddbe9d
remove unused map param in MakeVerkleMultiProof ( #261 )
2024-05-08 13:25:14 +02:00
Ignacio Hagopian
a0e1995bc4
New access-witness module ( #235 )
...
Use plain addresses/slot numbers instead of hashing them in the witness
2024-05-08 13:25:14 +02:00
Guillaume Ballet
a926f60699
fix: alignment of values whose len is < 32
2024-05-08 13:25:14 +02:00
Guillaume Ballet
12c65cb520
more code cleanup
2024-05-08 13:25:14 +02:00
Guillaume Ballet
9bb7f41c2d
code cleanup: remove a lot of TODOs & friends
2024-05-08 13:25:14 +02:00
Guillaume Ballet
5ba9fb7855
fix preimage issue in conversion
2024-05-08 13:25:14 +02:00
Guillaume Ballet
a72e7d94a2
fix to replay more blocks
2024-05-08 13:25:14 +02:00
Guillaume Ballet
a80c2aa8b5
fixes to replay ~500 blocks
2024-05-08 13:25:14 +02:00
Guillaume Ballet
54e060f094
fix incorrect equality condition is HasAccount
2024-05-08 13:25:14 +02:00
Guillaume Ballet
66dd866e89
implement missing odrDatabase function
2024-05-08 13:25:14 +02:00
Guillaume Ballet
0decbd7ca3
fix test: include EIP-3860
2024-05-08 13:25:14 +02:00