From de38163f89e45a4ab4d5cdd4d7d46056c34294c7 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Thu, 2 Nov 2023 17:29:58 +0300 Subject: [PATCH] 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 --- pkg/core/blockchain.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 40667c3d4..5882da12a 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -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) }