Update basicswap/basicswap.py

Co-authored-by: nahuhh <50635951+nahuhh@users.noreply.github.com>
This commit is contained in:
tecnovert 2024-11-29 18:54:09 +00:00 committed by GitHub
parent 4942f23de6
commit 56cd6da556
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8767,7 +8767,7 @@ class BasicSwap(BaseApp):
try: try:
chain_height = ci_to.getChainHeight() chain_height = ci_to.getChainHeight()
lock_tx_depth = (chain_height - bid.xmr_b_lock_tx.chain_height) + 1 lock_tx_depth = (chain_height - bid.xmr_b_lock_tx.chain_height)
if lock_tx_depth < ci_to.depth_spendable(): if lock_tx_depth < ci_to.depth_spendable():
raise TemporaryError( raise TemporaryError(
f"Chain B lock tx still confirming {lock_tx_depth} / {ci_to.depth_spendable()}." f"Chain B lock tx still confirming {lock_tx_depth} / {ci_to.depth_spendable()}."