revert proposalMatches

pull/55/head
kourin 2 years ago
parent 368025c938
commit 57ea12f00f
  1. 3
      core/ibft_test.go

@ -23,7 +23,8 @@ func proposalMatches(proposal *proto.ProposedBlock, message *proto.Message) bool
extractedProposal := preprepareData.PreprepareData.Proposal
return bytes.Equal(proposal.EthereumBlock, extractedProposal.EthereumBlock)
return proposal.Round == extractedProposal.Round &&
bytes.Equal(proposal.EthereumBlock, extractedProposal.EthereumBlock)
}
func prepareHashMatches(prepareHash []byte, message *proto.Message) bool {

Loading…
Cancel
Save