-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fault_proving(global_roots): Initial test suite for merklized storage updates #2598
fault_proving(global_roots): Initial test suite for merklized storage updates #2598
Conversation
83f9cc9
to
d83cd6f
Compare
b0be2e5
to
c45ab47
Compare
d2cdb38
to
81b6582
Compare
c45ab47
to
ce34251
Compare
928ac03
to
b9bdd5e
Compare
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.
My comments are minor, and proposed changes can be tackled in a follow up if accepted.
On a side note, we should start thinking about testing the whole process_block
function, e.g. how to generate a list of blocks contianing transactions of all types.
Thanks, and yes - though I think that's going to be more relevant when we integration test the binary so we might not need to cross that bridge just yet. |
contract_id | ||
} | ||
|
||
trait ConstructUpdateMerkleizedTablesTransactionForTests<'a>: Sized + '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.
would it not be better to leverage the BuilderPattern in this case?
E.g. something like
UpdateMerkleizedTablesTransactionBuilder::new().with_storage(storage).with_chain_id(&chain_id)
But probably best to do it in a follow-up and merge this one already :)
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.
Yes and yes :) But again this is only for tests, so I'm not sure if it's worth it. I'd happily approve a PR if you implement it as a follow-up.
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, non blocking comment
2457f06
to
bbf6361
Compare
## Version 0.41.5 ### Changed - [2387](#2387): Update description `tx-max-depth` flag. - [2630](#2630): Removed some noisy `tracing::info!` logs - [2643](#2643): Before this fix when tip is zero, transactions that use 30M have the same priority as transactions with 1M gas. Now they are correctly ordered. ### Added - [2617](#2617): Add integration skeleton of parallel-executor. - [2553](#2553): Scaffold global merkle root storage crate. - [2598](#2598): Add initial test suite for global merkle root storage updates. - [2635](#2635): Add metrics to gas price service ### Fixed - [2632](#2632): Improved performance of certain async trait impls in the gas price service. - [2662](#2662): Fix balances query endpoint cost without indexation and behavior coins to spend with one parameter at zero.
Closes #2582
Description
This PR adds an initial test suite for the merkelized storage update functionality. These tests ensure that the insertion and deletion behavior for coins (except message coins, to be added in #2597) and contract UTXOs is correct.