|
|
@ -812,7 +812,7 @@ func (ss *StateSync) UpdateBlockAndStatus(block *types.Block, bc *core.BlockChai |
|
|
|
if block.NumberU64() > 1 { |
|
|
|
if block.NumberU64() > 1 { |
|
|
|
// 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 && haveCurrentSig |
|
|
|
if verifyCurrentSig { |
|
|
|
if verifyCurrentSig { |
|
|
|
sig, bitmap, err := chain.ParseCommitSigAndBitmap(block.GetCurrentCommitSig()) |
|
|
|
sig, bitmap, err := chain.ParseCommitSigAndBitmap(block.GetCurrentCommitSig()) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|