dao: add stateroot-related settings to Version
Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
856e9cf67b
commit
f7e2d3d717
7 changed files with 91 additions and 46 deletions
|
@ -208,7 +208,7 @@ func (s *Module) defineSyncStage() error {
|
|||
return fmt.Errorf("failed to get header to initialize MPT billet: %w", err)
|
||||
}
|
||||
s.billet = mpt.NewBillet(header.PrevStateRoot, s.bc.GetConfig().KeepOnlyLatestState,
|
||||
TemporaryPrefix(s.dao.StoragePrefix), s.dao.Store)
|
||||
TemporaryPrefix(s.dao.Version.StoragePrefix), s.dao.Store)
|
||||
s.log.Info("MPT billet initialized",
|
||||
zap.Uint32("height", s.syncPoint),
|
||||
zap.String("state root", header.PrevStateRoot.StringBE()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue