@@ -21,6 +21,7 @@ import (
2121
2222 "github.com/ava-labs/libevm/common"
2323 "github.com/ava-labs/libevm/ethdb"
24+ "github.com/ava-labs/libevm/libevm/stateconf"
2425 "github.com/ava-labs/libevm/log"
2526 "github.com/ava-labs/libevm/trie"
2627 "github.com/ava-labs/libevm/trie/trienode"
@@ -70,7 +71,7 @@ type backend interface {
7071 //
7172 // The passed in maps(nodes, states) will be retained to avoid copying
7273 // everything. Therefore, these maps must not be changed afterwards.
73- Update (root common.Hash , parent common.Hash , block uint64 , nodes * trienode.MergedNodeSet , states * triestate.Set ) error
74+ Update (root common.Hash , parent common.Hash , block uint64 , nodes * trienode.MergedNodeSet , states * triestate.Set , opts ... stateconf. StateUpdateOption ) error
7475
7576 // Commit writes all relevant trie nodes belonging to the specified state
7677 // to disk. Report specifies whether logs will be displayed in info level.
@@ -148,11 +149,11 @@ func (db *Database) Reader(blockRoot common.Hash) (database.Reader, error) {
148149//
149150// The passed in maps(nodes, states) will be retained to avoid copying everything.
150151// Therefore, these maps must not be changed afterwards.
151- func (db * Database ) Update (root common.Hash , parent common.Hash , block uint64 , nodes * trienode.MergedNodeSet , states * triestate.Set ) error {
152+ func (db * Database ) Update (root common.Hash , parent common.Hash , block uint64 , nodes * trienode.MergedNodeSet , states * triestate.Set , opts ... stateconf. StateUpdateOption ) error {
152153 if db .preimages != nil {
153154 db .preimages .commit (false )
154155 }
155- return db .backend .Update (root , parent , block , nodes , states )
156+ return db .backend .Update (root , parent , block , nodes , states , opts ... )
156157}
157158
158159// Commit iterates over all the children of a particular node, writes them out
0 commit comments