-
Notifications
You must be signed in to change notification settings - Fork 87
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 a new sparse::MerkleTree::from_set
function to calculate state root
#484
Conversation
…lLabs/fuel-vm into bvrooman/feat/smt-update-set
…lLabs/fuel-vm into bvrooman/feat/smt-update-set
tree.root() | ||
} | ||
|
||
pub fn nodes_from_set<I, D>(set: I) -> (Bytes32, Vec<(Bytes32, Primitive)>) |
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.
Other than in the benchmarks, what is this used for?
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.
The init_contract_state
method uses it in the PR
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.
Big thank you @bvrooman for comments, they as usual are precise =D
Use a new
sparse::MerkleTree::from_set
function to calculate state root of theContract
.Related issue FuelLabs/fuel-core#1143