Skip to content

Commit

Permalink
block verification unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: May Rosenbaum <mayro1595@gmail.com>
  • Loading branch information
MayRosenbaum committed Nov 28, 2023
1 parent 5b3e0ab commit 00b9029
Show file tree
Hide file tree
Showing 2 changed files with 587 additions and 1 deletion.
2 changes: 1 addition & 1 deletion common/deliverclient/block_verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (a *BlockVerificationAssistant) UpdateConfig(configBlock *common.Block) err
}

if chdr.GetChannelId() != a.channelID {
return errors.New("config block channel ID '%s' does not match expected: '%s'")
return errors.Errorf("config block channel ID [%s] does not match expected: [%s]", chdr.GetChannelId(), a.channelID)
}

configEnvelope, err := configtx.UnmarshalConfigEnvelope(payload.Data)
Expand Down
Loading

0 comments on commit 00b9029

Please sign in to comment.