Skip to content

Commit

Permalink
process: update comment to be more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
Loong committed Mar 23, 2020
1 parent 0c9547f commit ddb60d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,11 +533,13 @@ func (p *Process) checkProposeInCurrentHeightAndRoundWithPrevotes() {
}

// checkProposeInCurrentHeightAndRoundWithPrevotesForTheFirstTime must only be
// called when a Propose and 2f+1 Prevotes has been seen for the first time at
// called when a Propose or Prevote has been seen for the first time, and it is
// possible that a Propose and 2f+1 Prevotes has been seen for the first time at
// the current `block.Height` and `block.Round`. This can happen when a Propose
// is seen for the first time at the current `block.Height` and `block.Round`,
// or, when a Prevote is seen for the first time at the current `block.Height`
// and `block.Round`.
// and `block.Round`. It is ok to call this function multiple times
// pre-emptively, but this call must only succeed once.
func (p *Process) checkProposeInCurrentHeightAndRoundWithPrevotesForTheFirstTime() {
// upon Propose{currentHeight, currentRound, block, *} from Schedule(currentHeight, currentRound)
m := p.state.Proposals.QueryByHeightRoundSignatory(p.state.CurrentHeight, p.state.CurrentRound, p.scheduler.Schedule(p.state.CurrentHeight, p.state.CurrentRound))
Expand Down

0 comments on commit ddb60d0

Please sign in to comment.