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

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

View File

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