core/state, p2p/discover, trie, whisper: avoid unnecessary conversions (#19870)
No need to convert these types.
This commit is contained in:
committed by
Péter Szilágyi
parent
a1f8549262
commit
5183483c53
@ -86,15 +86,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.
|
||||
|
Reference in New Issue
Block a user