diff options
author | atsushi-ishibashi <atsushi.ishibashi@finatext.com> | 2019-02-07 17:44:45 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2019-02-07 17:44:45 +0800 |
commit | 81801ccc2b5444ebcf05bf1cf1562fc7a7c2b93e (patch) | |
tree | 8831b01cb8b5e9d05413195e9748c4cce918d9ff /core/state/statedb_test.go | |
parent | c57166caa371d5b67db39f6f6851856023f8423c (diff) | |
download | go-tangerine-81801ccc2b5444ebcf05bf1cf1562fc7a7c2b93e.tar go-tangerine-81801ccc2b5444ebcf05bf1cf1562fc7a7c2b93e.tar.gz go-tangerine-81801ccc2b5444ebcf05bf1cf1562fc7a7c2b93e.tar.bz2 go-tangerine-81801ccc2b5444ebcf05bf1cf1562fc7a7c2b93e.tar.lz go-tangerine-81801ccc2b5444ebcf05bf1cf1562fc7a7c2b93e.tar.xz go-tangerine-81801ccc2b5444ebcf05bf1cf1562fc7a7c2b93e.tar.zst go-tangerine-81801ccc2b5444ebcf05bf1cf1562fc7a7c2b93e.zip |
core/state: more memory efficient preimage allocation (#16663)
Diffstat (limited to 'core/state/statedb_test.go')
-rw-r--r-- | core/state/statedb_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index cbd5bc75e..69392d972 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -276,6 +276,15 @@ func newTestAction(addr common.Address, r *rand.Rand) testAction { }, args: make([]int64, 1), }, + { + name: "AddPreimage", + fn: func(a testAction, s *StateDB) { + preimage := []byte{1} + hash := common.BytesToHash(preimage) + s.AddPreimage(hash, preimage) + }, + args: make([]int64, 1), + }, } action := actions[r.Intn(len(actions))] var nameargs []string |