File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
tui/internal/bubbles/status Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ func (m Model) View() string {
201
201
builder .WriteString (fmt .Sprintf ("Block wait time: %s\n " , time .Duration (m .Status .TimeSinceLastRound ).Round (roundTo )))
202
202
builder .WriteString (fmt .Sprintf ("Sync time: %s\n " , time .Duration (m .Status .CatchupTime ).Round (roundTo )))
203
203
height -= 3
204
- if m .Header .UpgradeState != (types.UpgradeState {}) {
204
+ if m .Header .UpgradeState != (types.UpgradeState {}) && ( uint64 ( m . Header . UpgradeState . NextProtocolVoteBefore ) > m . Status . LastRound ) {
205
205
//remainingToUpgrade := m.calculateTimeToGo(
206
206
// m.Status.LastRound, uint64(m.Header.NextProtocolSwitchOn), m.style.AccountBlueText)
207
207
remainingToVote := m .calculateTimeToGo (
You can’t perform that action at this time.
0 commit comments