We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c6d5a8 commit 1e44aa6Copy full SHA for 1e44aa6
core/remote_state_verifier.go
@@ -71,7 +71,7 @@ func NewVerifyManager(blockchain *BlockChain, peers verifyPeers, allowInsecure b
71
numberU64 := number.Uint64()
72
blockchain.SetHead(numberU64)
73
block := blockchain.GetBlockByNumber(numberU64)
74
- for i := 0; i < maxForkHeight; i++ {
+ for i := 0; i < maxForkHeight && block.NumberU64() > 0; i++ {
75
// When inserting a block,
76
// the block before 11 blocks will be verified,
77
// so the parent block of 11-22 will directly write the verification information.
0 commit comments