Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

netrome
Copy link
Contributor

@netrome netrome commented Jan 17, 2025

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.

@netrome netrome self-assigned this Jan 17, 2025
@netrome netrome changed the title tests: Initial test suite for merklized storage updates fault_proving(global_roots): Initial test suite for merklized storage updates Jan 17, 2025
@netrome netrome force-pushed the 2552-feature-flag-for-global-state-roots-+-first-onchain-table-implementation branch from 83f9cc9 to d83cd6f Compare January 21, 2025 14:34
@netrome netrome force-pushed the 2582-fault_provingglobal_roots-initial-test-suite-for-storage-updates branch from b0be2e5 to c45ab47 Compare January 27, 2025 20:54
@netrome netrome force-pushed the 2552-feature-flag-for-global-state-roots-+-first-onchain-table-implementation branch 2 times, most recently from d2cdb38 to 81b6582 Compare January 28, 2025 13:12
Base automatically changed from 2552-feature-flag-for-global-state-roots-+-first-onchain-table-implementation to master January 28, 2025 16:56
@netrome netrome force-pushed the 2582-fault_provingglobal_roots-initial-test-suite-for-storage-updates branch from c45ab47 to ce34251 Compare January 28, 2025 18:09
@netrome netrome requested review from acerone85 and a team January 28, 2025 18:27
@netrome netrome linked an issue Jan 28, 2025 that may be closed by this pull request
@netrome netrome marked this pull request as ready for review January 28, 2025 18:27
@netrome netrome force-pushed the 2582-fault_provingglobal_roots-initial-test-suite-for-storage-updates branch from 06c9de2 to 928ac03 Compare January 29, 2025 19:28
@netrome netrome force-pushed the 2582-fault_provingglobal_roots-initial-test-suite-for-storage-updates branch from 928ac03 to b9bdd5e Compare January 29, 2025 20:32
@netrome netrome requested a review from rymnc as a code owner January 29, 2025 20:32
&mut self,
self,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unintuitive to me. I'd expect something that updates, to be mut, and definitely not consume the struct.

What prompted this change?

}

#[test]
fn process_input__should_remove_coin() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As someone with little context here, it's not obvious to me what the difference between process_output__should_insert_coin and process_input__should_remove_coin are. It would be nice to explain the conditions for coin being added or removed in the test name so I know what I'm looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fault_proving(global_roots): Initial test suite for storage updates
2 participants