Skip to content

Commit b1ecf80

Browse files
author
Srinivasan Muralidharan
committed
FAB-1192 timer should be reset each pop
https://jira.hyperledger.org/browse/FAB-1192 Missing timer reset causes broadcast transactions to be not cut into blocks. Change-Id: Id6efbd18e307d43889a3703503305d3ee46bd6a1 Signed-off-by: Srinivasan Muralidharan <[email protected]>
1 parent 7c9ab1e commit b1ecf80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

orderer/solo/consensus.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"github.com/hyperledger/fabric/orderer/common/configtx"
2525
"github.com/hyperledger/fabric/orderer/rawledger"
2626
cb "github.com/hyperledger/fabric/protos/common"
27-
2827
"github.com/op/go-logging"
2928
)
3029

@@ -88,6 +87,9 @@ func (bs *consenter) main() {
8887
bs.rl.Append(batch, nil)
8988
}
9089
case <-timer:
90+
//clear the timer
91+
timer = nil
92+
9193
batch := bs.cutter.Cut()
9294
if len(batch) == 0 {
9395
logger.Warningf("Batch timer expired with no pending requests, this might indicate a bug")

0 commit comments

Comments
 (0)