mirror of
https://github.com/basicswap/basicswap.git
synced 2026-03-19 16:27:22 +01:00
Bump version.
This commit is contained in:
@@ -52,6 +52,7 @@ class CoinInterface:
|
||||
self.setDefaults()
|
||||
self._network = network
|
||||
self._mx_wallet = threading.Lock()
|
||||
self._altruistic = True
|
||||
|
||||
def setDefaults(self):
|
||||
self._unknown_wallet_seed = True
|
||||
@@ -166,6 +167,9 @@ class CoinInterface:
|
||||
def checkWallets(self) -> int:
|
||||
return 1
|
||||
|
||||
def altruistic(self) -> bool:
|
||||
return self._altruistic
|
||||
|
||||
|
||||
class AdaptorSigInterface():
|
||||
def getScriptLockTxDummyWitness(self, script: bytes):
|
||||
|
||||
@@ -627,9 +627,11 @@ class BTCInterface(Secp256k1Interface):
|
||||
|
||||
tx.vout.append(self.txoType()(locked_coin, self.getScriptForPubkeyHash(pkh_dest)))
|
||||
|
||||
if self._altruistic and kbsf:
|
||||
if self.altruistic() and kbsf:
|
||||
# Add mercy_keyshare
|
||||
tx.vout.append(self.txoType()(0, CScript([OP_RETURN, b'XBSW', kbsf])))
|
||||
else:
|
||||
self._log.debug('Not attaching mercy output, have kbsf {}.'.format('true' if kbsf else 'false'))
|
||||
|
||||
dummy_witness_stack = self.getScriptLockRefundSwipeTxDummyWitness(script_lock_refund)
|
||||
witness_bytes = self.getWitnessStackSerialisedLength(dummy_witness_stack)
|
||||
|
||||
Reference in New Issue
Block a user