-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix(op): fix payload id calculation #11730
Conversation
EDIT: the test now fails because we need to put the version as the first byte, which is sort of annoying:
from op-geth: out[0] = byte(args.Version)
return out |
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.
makes sense
let no_tx_pool = attributes.no_tx_pool.unwrap_or_default(); | ||
hasher.update([no_tx_pool as u8]); | ||
let txs_len = attributes.transactions.as_ref().map(|txs| txs.len()).unwrap_or_default(); |
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.
we now have multiple calls to unwrap_or_default.
can we do this just once
any updates to this? seems like geth adds the payload version to the payload_id that is causing the discrepancy |
Attempt at fixing #11729
Also updates to add the newly added eip1559 params
Right now the test from the issue fails, hopefully something simple