Bump version.

This commit is contained in:
tecnovert
2024-11-14 15:30:09 +02:00
parent f6916f093b
commit 273da833db
5 changed files with 26 additions and 7 deletions

View File

@@ -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))