Skip to content

Commit

Permalink
minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
iurii-ssv committed Oct 29, 2024
1 parent e0db3cc commit 791b79b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion protocol/v2/qbft/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type IConfig interface {
GetStorage() qbftstorage.QBFTStore
// GetTimer returns round timer
GetTimer() roundtimer.Timer
// GetRoundCutOff returns the round cut off
// GetCutOffRound returns the round number that QBFT instance stops working at
GetCutOffRound() specqbft.Round
}

Expand Down
4 changes: 1 addition & 3 deletions protocol/v2/qbft/instance/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ func (i *Instance) Start(logger *zap.Logger, value []byte, height specqbft.Heigh
i.metrics.StartStage()
i.config.GetTimer().TimeoutForRound(height, specqbft.FirstRound)

logger = logger.With(
fields.Round(i.State.Round),
fields.Height(i.State.Height))
logger = logger.With(fields.Round(i.State.Round), fields.Height(i.State.Height))

proposerID := i.proposer(i.GetConfig(), specqbft.FirstRound)
logger.Debug("ℹ️ starting QBFT instance", zap.Uint64("leader", proposerID))
Expand Down
2 changes: 1 addition & 1 deletion protocol/v2/qbft/roundtimer/timer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
SlowTimeout = 2 * time.Minute
)

var CutOffRound specqbft.Round = specqbft.Round(specqbft.CutoffRound)
var CutOffRound = specqbft.Round(specqbft.CutoffRound)

// Timer is an interface for a round timer, calling the UponRoundTimeout when times out
type Timer interface {
Expand Down

0 comments on commit 791b79b

Please sign in to comment.