dao: add stateroot-related settings to Version

Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgeniy Stratonikov 2021-10-22 10:58:53 +03:00
parent 856e9cf67b
commit f7e2d3d717
7 changed files with 91 additions and 46 deletions

View file

@ -57,7 +57,7 @@ func TestModule_PR2019_discussion_r689629704(t *testing.T) {
mptpool: NewPool(),
}
stateSync.billet = mpt.NewBillet(sr, true,
TemporaryPrefix(stateSync.dao.StoragePrefix), actualStorage)
TemporaryPrefix(stateSync.dao.Version.StoragePrefix), actualStorage)
stateSync.mptpool.Add(sr, []byte{})
// The test itself: we'll ask state sync module to restore each node exactly once.