ui: Display estimate of when lock refund tx will be swipeable.

This commit is contained in:
tecnovert
2021-12-19 14:15:32 +02:00
parent a802788cfd
commit 55275a6470
4 changed files with 48 additions and 19 deletions

View File

@@ -18,6 +18,20 @@ from basicswap.basicswap_util import (
)
def addLockRefundSigs(self, xmr_swap, ci):
self.log.debug('Setting lock refund tx sigs')
witness_stack = [
b'',
xmr_swap.al_lock_refund_tx_sig,
xmr_swap.af_lock_refund_tx_sig,
xmr_swap.a_lock_tx_script,
]
signed_tx = ci.setTxSignature(xmr_swap.a_lock_refund_tx, witness_stack)
ensure(signed_tx, 'setTxSignature failed')
xmr_swap.a_lock_refund_tx = signed_tx
def recoverNoScriptTxnWithKey(self, bid_id, encoded_key):
# Manually recover txn if other key is known
session = scoped_session(self.session_factory)