Skip to content

Commit

Permalink
Additional logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen committed Sep 8, 2023
1 parent a874a86 commit e8d3fa4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/blockchain_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit e8d3fa4

Please sign in to comment.