From e8d3fa48f651763e614b1b3eedeb70048e2eb423 Mon Sep 17 00:00:00 2001 From: frozen <355847+Frozen@users.noreply.github.com> Date: Fri, 8 Sep 2023 11:33:29 -0400 Subject: [PATCH] Additional logs. --- core/blockchain_impl.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/blockchain_impl.go b/core/blockchain_impl.go index 37fa38582f..2335725e04 100644 --- a/core/blockchain_impl.go +++ b/core/blockchain_impl.go @@ -1750,6 +1750,9 @@ func (bc *BlockChainImpl) insertChain(chain types.Blocks, verifyHeaders bool) (i if len(chain) == 0 { return 0, nil, nil, nil } + e := chain[0] + fmt.Println("insertChain", bc.shardID, e.Epoch().Uint64(), e.NumberU64()) + // Do a sanity check that the provided chain is actually ordered and linked for i := 1; i < len(chain); i++ { if chain[i].NumberU64() != chain[i-1].NumberU64()+1 || chain[i].ParentHash() != chain[i-1].Hash() {