mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(trie): write sorted hashed state (#9519)
This commit is contained in:
@ -27,7 +27,7 @@ pub fn calculate_state_root(c: &mut Criterion) {
|
||||
let provider_factory = create_test_provider_factory();
|
||||
{
|
||||
let provider_rw = provider_factory.provider_rw().unwrap();
|
||||
HashedStateChanges(db_state).write_to_db(&provider_rw).unwrap();
|
||||
HashedStateChanges(&db_state.into_sorted()).write_to_db(&provider_rw).unwrap();
|
||||
let (_, updates) =
|
||||
StateRoot::from_tx(provider_rw.tx_ref()).root_with_updates().unwrap();
|
||||
updates.write_to_database(provider_rw.tx_ref()).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user