Skip to content

Commit

Permalink
remove verifyQC from ProposedBlockHandler since verifyQC is already i…
Browse files Browse the repository at this point in the history
…n verifyHeader (ethereum#88)
  • Loading branch information
wgr523 authored May 18, 2022
1 parent 2b40d13 commit 727202c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions consensus/XDPoS/engines/engine_v2/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,12 +664,6 @@ func (x *XDPoS_v2) ProposedBlockHandler(chain consensus.ChainReader, blockHeader
return err
}

err = x.verifyQC(chain, quorumCert, nil)
if err != nil {
log.Error("[ProposedBlockHandler] Fail to verify QC", "Extra round", round, "QC proposed BlockInfo Hash", quorumCert.ProposedBlockInfo.Hash)
return err
}

// Generate blockInfo
blockInfo := &utils.BlockInfo{
Hash: blockHeader.Hash(),
Expand Down

0 comments on commit 727202c

Please sign in to comment.