-
Notifications
You must be signed in to change notification settings - Fork 64
feat(l2): blockchain tests stateless execution #3076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat/debug_executionWitness_3
Are you sure you want to change the base?
feat(l2): blockchain tests stateless execution #3076
Conversation
Lines of code reportTotal lines added: Detailed view
|
Benchmark for c7431d1Click to view benchmark
|
Benchmark for 1f369e1Click to view benchmark
|
Benchmark for ed360e9Click to view benchmark
|
Benchmark for 086f8cbClick to view benchmark
|
Benchmark for 27dbea6Click to view benchmark
|
Benchmark for d11c7e9Click to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left 1 nit.
crates/common/trie/trie.rs
Outdated
pub fn root_node(&self) -> Result<Option<Node>, TrieError> { | ||
self.root.get_node(self.db.as_ref()) | ||
if self.root.compute_hash().finalize() == *EMPTY_TRIE_HASH { | ||
self.root.get_node(self.db.as_ref()) | ||
} else { | ||
Ok(None) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be a !=
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch fixed here
assert!(test_should_fail, "Expected test to succeed failed with {e}") | ||
} else { | ||
assert!(!test_should_fail, "Expected test to fail succeeded") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe include the test name in the error message?
Benchmark for a499d1fClick to view benchmark
|
Motivation
We want to run the ef state tests with our prover with stateless execution
Description
Fixes:
Ok(None)
forTrie::root_node
validate_receipts
andvalidate_requests_hash
to stateless executionblock.body.withdrawals
when generating the witnessHow to test
cd cmd/ef_tests/blockchain