Skip to content

Commit

Permalink
Merge pull request #1977 from jyellick/remove-duplicate-storeoutstanding
Browse files Browse the repository at this point in the history
Remove duplicated storeRequest call per @kchristidis
  • Loading branch information
srderson committed Jun 27, 2016
2 parents f9323ab + 663dc09 commit b2e9316
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions consensus/obcpbft/obc-batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,14 @@ func (op *obcBatch) submitToLeader(req *Request) events.Event {

op.logAddTxFromRequest(req)
op.reqStore.storeOutstanding(req)
op.startTimerIfOutstandingRequests()

// if we believe we are the leader, then process this request
leader := op.pbft.primary(op.pbft.view)
if leader == op.pbft.id && op.pbft.activeView {
return op.leaderProcReq(req)
}

op.reqStore.storeOutstanding(req)
op.startTimerIfOutstandingRequests()

return nil
}

Expand Down

0 comments on commit b2e9316

Please sign in to comment.