Skip to content

Commit

Permalink
[FAB-7871] Fix deliver client envelope header type
Browse files Browse the repository at this point in the history
Fix common.HeaderType_CONFIG_UPDATE header type of the peer deliver
client to HeaderType_DELIVER_SEEK_INFO.

Change-Id: I0e4d8535ddf061e95ba9d35cc6149e755f055ed8
Signed-off-by: Artem Barger <bartem@il.ibm.com>
  • Loading branch information
C0rWin committed Jan 23, 2018
1 parent 88fd880 commit 6a41bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/deliverservice/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (b *blocksRequester) seekOldest() error {
msgVersion := int32(0)
epoch := uint64(0)
tlsCertHash := b.getTLSCertHash()
env, err := utils.CreateSignedEnvelopeWithTLSBinding(common.HeaderType_CONFIG_UPDATE, b.chainID, localmsp.NewSigner(), seekInfo, msgVersion, epoch, tlsCertHash)
env, err := utils.CreateSignedEnvelopeWithTLSBinding(common.HeaderType_DELIVER_SEEK_INFO, b.chainID, localmsp.NewSigner(), seekInfo, msgVersion, epoch, tlsCertHash)
if err != nil {
return err
}
Expand All @@ -92,7 +92,7 @@ func (b *blocksRequester) seekLatestFromCommitter(height uint64) error {
msgVersion := int32(0)
epoch := uint64(0)
tlsCertHash := b.getTLSCertHash()
env, err := utils.CreateSignedEnvelopeWithTLSBinding(common.HeaderType_CONFIG_UPDATE, b.chainID, localmsp.NewSigner(), seekInfo, msgVersion, epoch, tlsCertHash)
env, err := utils.CreateSignedEnvelopeWithTLSBinding(common.HeaderType_DELIVER_SEEK_INFO, b.chainID, localmsp.NewSigner(), seekInfo, msgVersion, epoch, tlsCertHash)
if err != nil {
return err
}
Expand Down

0 comments on commit 6a41bbb

Please sign in to comment.