MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / root_hash_changes

Function root_hash_changes

chain/src/account.rs:177–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175
176 #[test]
177 fn root_hash_changes() {
178 let mut account_storage = new_account_storage();
179 let root_hash_1 = account_storage.root_hash().unwrap();
180 let (_, _) = add_account(&mut account_storage);
181 let root_hash_2 = account_storage.root_hash().unwrap();
182
183 assert_ne!(root_hash_1, root_hash_2);
184 }
185}

Callers

nothing calls this directly

Calls 3

new_account_storageFunction · 0.85
add_accountFunction · 0.85
root_hashMethod · 0.45

Tested by

no test coverage detected