1
0

adb: trigger adb_added_tx event only if the transaction is new

This commit is contained in:
ThomasV
2022-08-17 10:35:43 +02:00
parent c2b5e3ec15
commit 60c493dc15
3 changed files with 7 additions and 7 deletions

View File

@@ -529,7 +529,7 @@ class LNWalletWatcher(LNWatcher):
# we may have a tx with a different fee, in which case it will be replaced
if not old_tx or (old_tx and old_tx.txid() != new_tx.txid()):
try:
tx_was_added = self.adb.add_transaction(new_tx, notify_GUI=(old_tx is None))
tx_was_added = self.adb.add_transaction(new_tx, is_new=(old_tx is None))
except Exception as e:
self.logger.info(f'could not add future tx: {name}. prevout: {prevout} {str(e)}')
tx_was_added = False