diff --git a/basicswap/basicswap.py b/basicswap/basicswap.py index a29fc58..18c4802 100644 --- a/basicswap/basicswap.py +++ b/basicswap/basicswap.py @@ -3153,7 +3153,7 @@ class BasicSwap(BaseApp): p2wsh_addr = ci_from.encode_p2wsh(a_lock_refund_tx_dest) lock_refund_tx_chain_info = ci_from.getLockTxHeight(refund_tx.txid, p2wsh_addr, 0, bid.chain_a_height_start) - if lock_refund_tx_chain_info is not None: + if lock_refund_tx_chain_info is not None and lock_refund_tx_chain_info.get('height', 0) > 0: block_header = ci_from.getBlockHeaderFromHeight(lock_refund_tx_chain_info['height']) refund_tx.block_hash = bytes.fromhex(block_header['hash']) refund_tx.block_height = block_header['height']