mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 10:48:11 +01:00
Bump version.
This commit is contained in:
@@ -3883,12 +3883,15 @@ class BasicSwap(BaseApp):
|
||||
session.commit()
|
||||
|
||||
if self.isBchXmrSwap(offer):
|
||||
for_ed25519: bool = True if ci_to.curve_type() == Curves.ed25519 else False
|
||||
kbsf = self.getPathKey(ci_from.coin_type(), ci_to.coin_type(), bid.created_at, xmr_swap.contract_count, KeyTypes.KBSF, for_ed25519)
|
||||
if ci_from.altruistic():
|
||||
for_ed25519: bool = True if ci_to.curve_type() == Curves.ed25519 else False
|
||||
kbsf = self.getPathKey(ci_from.coin_type(), ci_to.coin_type(), bid.created_at, xmr_swap.contract_count, KeyTypes.KBSF, for_ed25519)
|
||||
|
||||
mercy_tx = ci_from.createMercyTx(xmr_swap.a_lock_refund_swipe_tx, h2b(txid), xmr_swap.a_lock_refund_tx_script, kbsf)
|
||||
txid = ci_from.publishTx(mercy_tx)
|
||||
self.log.info('Submitted mercy tx for bid %s, txid %s', bid_id.hex(), txid)
|
||||
mercy_tx = ci_from.createMercyTx(xmr_swap.a_lock_refund_swipe_tx, h2b(txid), xmr_swap.a_lock_refund_tx_script, kbsf)
|
||||
txid = ci_from.publishTx(mercy_tx)
|
||||
self.log.info('Submitted mercy tx for bid {}, txid {}'.format(bid_id.hex(), txid))
|
||||
else:
|
||||
self.log.info('Not sending mercy tx for bid {}'.format(bid_id.hex()))
|
||||
except Exception as ex:
|
||||
self.log.debug('Trying to publish coin a lock refund swipe tx: %s', str(ex))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user