mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-21 06:04:33 +00:00
parent
220b2f4174
commit
16638e9e17
1 changed files with 3 additions and 3 deletions
|
|
@ -85,15 +85,15 @@ func TestIntermediateLeaks(t *testing.T) {
|
|||
|
||||
// Modify the transient state.
|
||||
for i := byte(0); i < 255; i++ {
|
||||
modify(transState, common.Address{byte(i)}, i, 0)
|
||||
modify(transState, common.Address{i}, i, 0)
|
||||
}
|
||||
// Write modifications to trie.
|
||||
transState.IntermediateRoot(false)
|
||||
|
||||
// Overwrite all the data with new values in the transient database.
|
||||
for i := byte(0); i < 255; i++ {
|
||||
modify(transState, common.Address{byte(i)}, i, 99)
|
||||
modify(finalState, common.Address{byte(i)}, i, 99)
|
||||
modify(transState, common.Address{i}, i, 99)
|
||||
modify(finalState, common.Address{i}, i, 99)
|
||||
}
|
||||
|
||||
// Commit and cross check the databases.
|
||||
|
|
|
|||
Loading…
Reference in a new issue