-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat(l1): implement EIPs 7685 and 6110 #1921
Conversation
|
…nto feat/eips-7685-6110
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.
Looks good, left a fix for the prover 😉
@@ -129,6 +130,7 @@ async fn transfer_from( | |||
retries += 1; | |||
sleep(std::time::Duration::from_secs(2)); | |||
} | |||
sleep(Duration::from_millis(3)); |
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.
This is used to generate the l2-loadtest.rlp
. It was generating to many transactions in one block and making it tedious to regenerate the file.
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.
It should be easier to regenerate the file in the future if needed.
test_data/l2-loadtest.rlp
Outdated
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.
I've regenerated this file to work with the validate_prague_block_header
function
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.
LGTM, just a small suggestion
crates/common/types/requests.rs
Outdated
pub fn to_bytes(&self) -> Vec<u8> { | ||
match self { | ||
Requests::Deposit(deposits) => { | ||
let mut deposit_data = vec![]; |
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.
let mut deposit_data = vec![]; | |
let deposit_data = deposits.iter().flat_map(|d| d.to_summarized_byte_array()); | |
std::iter::once(DEPOSIT_TYPE).chain(deposit_data).collect() |
Motivation
In order to support the Prague update.
Description
This PR implements EIP-7685 and EIP-6110.
Observation
Two ef_tests from
vectors/prague/eip6110_deposits
where excluded since we need the latest version of the evm to pass them.Closes #1787
Closes #1789