From 9a8f9f0a94bf5dd9b49a0f1eca16b4ad73b5f0c8 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Tue, 20 Jul 2021 15:14:10 -0400 Subject: [PATCH] fix stuck notification due to mempool/notification race --- lbry/wallet/ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbry/wallet/ledger.py b/lbry/wallet/ledger.py index 73d065914..dd8c6812b 100644 --- a/lbry/wallet/ledger.py +++ b/lbry/wallet/ledger.py @@ -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,