[sync][stream] remove writeCommitSig in both legacy sync and downloader

pull/3612/head
Jacky Wang 4 years ago
parent 63216dc7c2
commit 2916c3379f
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 5
      api/service/legacysync/syncing.go
  2. 2
      hmy/downloader/downloader.go

@ -859,11 +859,6 @@ func (ss *StateSync) UpdateBlockAndStatus(block *types.Block, bc *core.BlockChai
Uint32("ShardID", block.ShardID()).
Msg("[SYNC] UpdateBlockAndStatus: New Block Added to Blockchain")
if verifyAllSig && haveCurrentSig {
if err := bc.WriteCommitSig(block.NumberU64(), block.GetCurrentCommitSig()); err != nil {
return err
}
}
for i, tx := range block.StakingTransactions() {
utils.Logger().Info().
Msgf(

@ -312,5 +312,5 @@ func verifyAndInsertBlock(bc blockChain, block *types.Block, nextBlocks ...*type
if _, err := bc.InsertChain(types.Blocks{block}, false); err != nil {
return errors.Wrap(err, "[InsertChain]")
}
return bc.WriteCommitSig(block.NumberU64(), block.GetCurrentCommitSig())
return nil
}

Loading…
Cancel
Save