WIP continue implementing the BCH swap interface for XMR swap and atomic swap protocols

This commit is contained in:
mainnet-pat
2024-10-14 15:35:24 +00:00
committed by tecnovert
parent 1b43806d51
commit 3ea832bd03
9 changed files with 428 additions and 122 deletions

View File

@@ -1148,7 +1148,8 @@ class BTCInterface(Secp256k1Interface):
return None
try:
tx = self.rpc_wallet('gettransaction', [txid.hex()])
# set `include_watchonly` explicitly to `True` to get transactions for watchonly addresses also in BCH
tx = self.rpc_wallet('gettransaction', [txid.hex(), True])
block_height = 0
if 'blockhash' in tx: