[sync] fix the bug in UpdateBlockAndStatus

pull/3623/head
Jacky Wang 4 years ago
parent d67328444f
commit 6275eaf0b0
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 2
      api/service/legacysync/syncing.go

@ -812,7 +812,7 @@ func (ss *StateSync) UpdateBlockAndStatus(block *types.Block, bc *core.BlockChai
if block.NumberU64() > 1 {
// Verify signature every 100 blocks
verifySeal := block.NumberU64()%verifyHeaderBatchSize == 0 || verifyAllSig
verifyCurrentSig := verifyAllSig && verifySeal
verifyCurrentSig := verifyAllSig && haveCurrentSig
if verifyCurrentSig {
sig, bitmap, err := chain.ParseCommitSigAndBitmap(block.GetCurrentCommitSig())
if err != nil {

Loading…
Cancel
Save