aboutsummaryrefslogtreecommitdiffstats
path: root/core/state
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-22 15:30:09 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-07-22 15:30:09 +0800
commit5183483c53fac7ad5d31759ecb95ca7b1a67744d (patch)
treebc0b92ae748bcb16a33c754b6b8647af80def902 /core/state
parenta1f8549262567ddacac3d4180f8a6ca0826036a9 (diff)
downloadgo-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.gz
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.bz2
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.lz
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.xz
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.tar.zst
go-tangerine-5183483c53fac7ad5d31759ecb95ca7b1a67744d.zip
core/state, p2p/discover, trie, whisper: avoid unnecessary conversions (#19870)
No need to convert these types.
Diffstat (limited to 'core/state')
-rw-r--r--core/state/statedb_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go
index c78ef38fd..bf073bc94 100644
--- a/core/state/statedb_test.go
+++ b/core/state/statedb_test.go
@@ -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.