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

Use Rust version of MerkleSet #17908

Merged
merged 12 commits into from Apr 29, 2024
Merged

Use Rust version of MerkleSet #17908

merged 12 commits into from Apr 29, 2024

Conversation

matt-o-how
Copy link
Contributor

Purpose:

Migrates chia-blockchain to use the rust version of MerkleSet which is included in the latest version of chia_rs.
Note: it does not delete the Python version of MerkleSet just yet as we may want to keep it around a little while for posterity and delete it fully later.

Testing Notes:

The file is tested for Python compatibility in the chia_rs repository and also runs all of the tests in chia-blockchain + a new test of exclusion in test_wallet_sync.py

@matt-o-how matt-o-how added the Changed Required label for PR that categorizes merge commit message as "Changed" for changelog label Apr 24, 2024
@matt-o-how matt-o-how requested a review from a team as a code owner April 24, 2024 12:06
@matt-o-how matt-o-how requested a review from arvidn April 24, 2024 12:07
Copy link
Contributor

@arvidn arvidn left a comment

Choose a reason for hiding this comment

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

I worry a bit that leaving the python implementation of MerkleSet in the tree might lead to someone adding a dependency to it in the future. We always have the git history if we need to go back and look at it.

chia/_tests/wallet/sync/test_wallet_sync.py Show resolved Hide resolved
@arvidn arvidn closed this Apr 29, 2024
@arvidn arvidn reopened this Apr 29, 2024
Copy link
Contributor

@arvidn arvidn left a comment

Choose a reason for hiding this comment

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

It would be nice to have a test where we ask for an existing addition as well, to verify the proof-of-inclusion

@pmaslana pmaslana merged commit bed6ec7 into main Apr 29, 2024
351 checks passed
@pmaslana pmaslana deleted the rs_merkle_set branch April 29, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Required label for PR that categorizes merge commit message as "Changed" for changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants