fix stuck notification due to mempool/notification race

This commit is contained in:
Jack Robison 2021-07-20 15:14:10 -04:00
parent be544d6d89
commit 9a8f9f0a94
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -750,7 +750,7 @@ class Ledger(metaclass=LedgerRegistry):
))[1] if record['history'] else []
for txid, local_height in local_history:
if txid == tx.id:
if local_height >= height:
if local_height >= height or (local_height == 0 and height > local_height):
return True
log.warning(
"local history has higher height than remote for %s (%i vs %i)", txid,