Detect BCH mercy txn.

This commit is contained in:
tecnovert
2024-11-07 02:36:39 +02:00
parent a214866b08
commit fc17fa41ff
5 changed files with 79 additions and 18 deletions

View File

@@ -201,7 +201,7 @@ class BCHInterface(BTCInterface):
if not txid:
txns = self.rpc_wallet('listtransactions', ["*", 100000, 0, True])
for tx in txns:
if self.make_int(tx['amount']) == bid_amount and tx['category'] == 'send' and tx['address'] == dest_address:
if self.make_int(tx['amount']) == bid_amount and tx['category'] == 'send' and tx.get('address', '_NONE_') == dest_address:
txid = bytes.fromhex(tx['txid'])
break