forked from TrueCloudLab/neoneo-go
core: log block height before MPT/natives cache initialization
We have this log on the network server side, but it would also be useful in case of failed blockchain initialization. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
bbbc6805a8
commit
de38163f89
1 changed files with 2 additions and 0 deletions
|
@ -468,6 +468,8 @@ func (bc *Blockchain) init() error {
|
|||
}
|
||||
bc.blockHeight = bHeight
|
||||
bc.persistedHeight = bHeight
|
||||
|
||||
bc.log.Debug("initializing caches", zap.Uint32("blockHeight", bHeight))
|
||||
if err = bc.stateRoot.Init(bHeight); err != nil {
|
||||
return fmt.Errorf("can't init MPT at height %d: %w", bHeight, err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue