Skip to content

Commit

Permalink
Handle UpgradeState after an upgrade is scheduled.
Browse files Browse the repository at this point in the history
  • Loading branch information
winder committed Sep 7, 2022
1 parent b83cb12 commit 5856962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tui/internal/bubbles/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (m Model) View() string {
builder.WriteString(fmt.Sprintf("Block wait time: %s\n", time.Duration(m.Status.TimeSinceLastRound).Round(roundTo)))
builder.WriteString(fmt.Sprintf("Sync time: %s\n", time.Duration(m.Status.CatchupTime).Round(roundTo)))
height -= 3
if m.Header.UpgradeState != (types.UpgradeState{}) {
if m.Header.UpgradeState != (types.UpgradeState{}) && (uint64(m.Header.UpgradeState.NextProtocolVoteBefore) > m.Status.LastRound) {
//remainingToUpgrade := m.calculateTimeToGo(
// m.Status.LastRound, uint64(m.Header.NextProtocolSwitchOn), m.style.AccountBlueText)
remainingToVote := m.calculateTimeToGo(
Expand Down

0 comments on commit 5856962

Please sign in to comment.