Skip to content

Commit d4fa505

Browse files
committed
[FAB-2605] Fix hard-coded start for deliver_stdout
https://jira.hyperledger.org/browse/FAB-2605 The SeekInfo message broadcasted by the deliver_stdout client had its start field hard-coded to the `SeekOldest` message. This isn't really a problem so far since we use the client to deliver from the oldest block available anyway, but the code is wrong, and when we extend the client (as we will do in a subsequent changeset), leaving this unfixed will come back to haunt us. Change-Id: Id2b06be1a632e42104bd696f6c67f23da27b5a03 Signed-off-by: Kostas Christidis <[email protected]>
1 parent 356ce27 commit d4fa505

File tree

1 file changed

+1
-1
lines changed
  • orderer/sample_clients/deliver_stdout

1 file changed

+1
-1
lines changed

orderer/sample_clients/deliver_stdout/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func seekHelper(chainID string, start *ab.SeekPosition) *cb.Envelope {
5050
},
5151

5252
Data: utils.MarshalOrPanic(&ab.SeekInfo{
53-
Start: &ab.SeekPosition{Type: &ab.SeekPosition_Oldest{Oldest: &ab.SeekOldest{}}},
53+
Start: start,
5454
Stop: &ab.SeekPosition{Type: &ab.SeekPosition_Specified{Specified: &ab.SeekSpecified{Number: math.MaxUint64}}},
5555
Behavior: ab.SeekInfo_BLOCK_UNTIL_READY,
5656
}),

0 commit comments

Comments
 (0)