trie: revamp trie updates (#9239)

This commit is contained in:
Roman Krasiuk
2024-07-03 07:38:48 -07:00
committed by GitHub
parent aa13539a3a
commit 1998f44b1b
15 changed files with 327 additions and 572 deletions

View File

@ -30,7 +30,7 @@ pub fn calculate_state_root(c: &mut Criterion) {
HashedStateChanges(db_state).write_to_db(provider_rw.tx_ref()).unwrap();
let (_, updates) =
StateRoot::from_tx(provider_rw.tx_ref()).root_with_updates().unwrap();
updates.flush(provider_rw.tx_ref()).unwrap();
updates.write_to_database(provider_rw.tx_ref()).unwrap();
provider_rw.commit().unwrap();
}