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 <[email protected]>
  • Loading branch information
MayRosenbaum committed Nov 28, 2023
1 parent 5b3e0ab commit 3dfa087
Show file tree
Hide file tree
Showing 2 changed files with 567 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 3dfa087

Please sign in to comment.