Skip to content

Commit

Permalink
Remove unnecessary timer when segment checkpoint is stable (#381)
Browse files Browse the repository at this point in the history
Remove unnecessary timer when segment checkpoint is stable
  • Loading branch information
ranchalp authored Mar 29, 2023
1 parent 213be18 commit eee7aaa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion pkg/orderers/pbftgoodcase.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ func (orderer *Orderer) applyMsgPreprepare(preprepare *ordererspbftpb.Preprepare
return events.EmptyList()
}

//FIXME Address verification of the certificate after decision, issue #335
slot.Preprepare = preprepare

// Request the computation of the hash of the Preprepare message.
Expand Down
8 changes: 0 additions & 8 deletions pkg/orderers/pbftslot.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ func (slot *pbftSlot) advanceState(pbft *Orderer, sn t.SeqNr) *events.EventList
t.TimeDuration(pbft.config.ViewChangeSNTimeout),
))
}
eventsOut.PushBack(events.TimerDelay(
pbft.moduleConfig.Timer,
[]*eventpb.Event{OrdererEvent(pbft.moduleConfig.Self,
PbftViewChangeSNTimeout(
pbft.view,
pbft.numCommitted(pbft.view)))},
t.TimeDuration(pbft.config.ViewChangeSNTimeout),
))

// If all certificates have been committed (i.e. this is the last certificate to commit),
// send a Done message to all other nodes.
Expand Down

0 comments on commit eee7aaa

Please sign in to comment.