mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-03 17:29:26 +00:00
xmr swap: Set correct block height on refund_tx.
This commit is contained in:
parent
3c84f0230e
commit
468d8c5cc1
1 changed files with 1 additions and 1 deletions
|
@ -3153,7 +3153,7 @@ class BasicSwap(BaseApp):
|
||||||
p2wsh_addr = ci_from.encode_p2wsh(a_lock_refund_tx_dest)
|
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)
|
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'])
|
block_header = ci_from.getBlockHeaderFromHeight(lock_refund_tx_chain_info['height'])
|
||||||
refund_tx.block_hash = bytes.fromhex(block_header['hash'])
|
refund_tx.block_hash = bytes.fromhex(block_header['hash'])
|
||||||
refund_tx.block_height = block_header['height']
|
refund_tx.block_height = block_header['height']
|
||||||
|
|
Loading…
Reference in a new issue