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