-
Notifications
You must be signed in to change notification settings - Fork 38
fix: jovian hardfork tests & fixes #320
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
Conversation
We do check builder tx size and deduct it from total da size, have you accounted for this? |
0d3b68a to
eb0e675
Compare
| } | ||
| // Save some space in the block_da_limit for builder tx | ||
| let builder_tx_da_size = builder_txs.iter().fold(0, |acc, tx| acc + tx.da_size); | ||
| info.cumulative_da_bytes_used += builder_tx_da_size; |
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 should be in here as the builder tx isn't necessarily committed yet
| // We subtract gas limit and da limit for builder transaction from the whole limit | ||
| let builder_tx_gas = builder_txs.iter().fold(0, |acc, tx| acc + tx.gas_used); | ||
| let builder_tx_da_size: u64 = builder_txs.iter().fold(0, |acc, tx| acc + tx.da_size); | ||
| info.cumulative_da_bytes_used += builder_tx_da_size; |
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 should be in here as the builder tx isn't necessarily committed yet
|
|
||
| let builder_tx_gas = builder_txs.iter().fold(0, |acc, tx| acc + tx.gas_used); | ||
| let builder_tx_da_size: u64 = builder_txs.iter().fold(0, |acc, tx| acc + tx.da_size); | ||
| info.cumulative_da_bytes_used += builder_tx_da_size; |
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.
same here
📝 Summary
💡 Motivation and Context
Needed for the hardfork.
✅ I have completed the following steps:
make lintmake test