background: Exit early if no votable tickets
This commit is contained in:
parent
a67de8a024
commit
56a5aa5b1d
@ -245,6 +245,11 @@ func blockConnected() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the database has no votable tickets, there is nothing more to do
|
||||||
|
if len(dbTickets) == 0 {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
// Find the oldest block height from confirmed tickets.
|
// Find the oldest block height from confirmed tickets.
|
||||||
oldestHeight := findOldestHeight(dbTickets)
|
oldestHeight := findOldestHeight(dbTickets)
|
||||||
|
|
||||||
@ -416,6 +421,11 @@ func checkWalletConsistency() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the database has no votable tickets, there is nothing more to do
|
||||||
|
if len(votableTickets) == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Find the oldest block height from confirmed tickets.
|
// Find the oldest block height from confirmed tickets.
|
||||||
oldestHeight := findOldestHeight(votableTickets)
|
oldestHeight := findOldestHeight(votableTickets)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user