background: Exit early if no votable tickets
This commit is contained in:
parent
a67de8a024
commit
56a5aa5b1d
@ -245,6 +245,11 @@ func blockConnected() {
|
||||
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.
|
||||
oldestHeight := findOldestHeight(dbTickets)
|
||||
|
||||
@ -416,6 +421,11 @@ func checkWalletConsistency() {
|
||||
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.
|
||||
oldestHeight := findOldestHeight(votableTickets)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user