From d4fa5059fa4d55d3f839c238b848a6569822bc83 Mon Sep 17 00:00:00 2001 From: Kostas Christidis Date: Thu, 2 Mar 2017 13:03:23 -0500 Subject: [PATCH] [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 --- orderer/sample_clients/deliver_stdout/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orderer/sample_clients/deliver_stdout/client.go b/orderer/sample_clients/deliver_stdout/client.go index 3a5cae60233..17746f1c444 100644 --- a/orderer/sample_clients/deliver_stdout/client.go +++ b/orderer/sample_clients/deliver_stdout/client.go @@ -50,7 +50,7 @@ func seekHelper(chainID string, start *ab.SeekPosition) *cb.Envelope { }, Data: utils.MarshalOrPanic(&ab.SeekInfo{ - Start: &ab.SeekPosition{Type: &ab.SeekPosition_Oldest{Oldest: &ab.SeekOldest{}}}, + Start: start, Stop: &ab.SeekPosition{Type: &ab.SeekPosition_Specified{Specified: &ab.SeekSpecified{Number: math.MaxUint64}}}, Behavior: ab.SeekInfo_BLOCK_UNTIL_READY, }),