Skip to content

Commit 5304843

Browse files
committed
verifyHashChain --> verifyHashChainAndDataHash
Signed-off-by: Hagar Meir <[email protected]>
1 parent 54ad8ea commit 5304843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orderer/consensus/smartbft/verifier.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (v *Verifier) VerifyProposal(proposal types.Proposal) ([]types.RequestInfo,
103103
}
104104

105105
rtc := v.RuntimeConfig.Load().(RuntimeConfig)
106-
if err := verifyHashChain(block, rtc.LastCommittedBlockHash); err != nil {
106+
if err := verifyHashChainAndDataHash(block, rtc.LastCommittedBlockHash); err != nil {
107107
return nil, err
108108
}
109109

@@ -243,7 +243,7 @@ func (v *Verifier) VerificationSequence() uint64 {
243243
return v.VerificationSequencer.Sequence()
244244
}
245245

246-
func verifyHashChain(block *cb.Block, prevHeaderHash string) error {
246+
func verifyHashChainAndDataHash(block *cb.Block, prevHeaderHash string) error {
247247
thisHdrHashOfPrevHdr := hex.EncodeToString(block.Header.PreviousHash)
248248
if prevHeaderHash != thisHdrHashOfPrevHdr {
249249
return errors.Errorf("previous header hash is %s but expected %s", thisHdrHashOfPrevHdr, prevHeaderHash)

0 commit comments

Comments
 (0)