Browse Source

Update transaction parameters

master
Jules Comte 5 years ago
parent
commit
3537b7070d
  1. 3
      jmclient/jmclient/taker.py
  2. 2
      jmclient/jmclient/wallet.py

3
jmclient/jmclient/taker.py

@ -506,7 +506,8 @@ class Taker(object):
self.utxo_tx = [u for u in sum(self.utxos.values(), [])]
self.outputs.append({'address': self.coinjoin_address(),
'value': self.cjamount})
self.latest_tx = btc.make_shuffled_tx(self.utxo_tx, self.outputs)
self.latest_tx = btc.make_shuffled_tx(self.utxo_tx, self.outputs,
version=2, locktime=compute_tx_locktime())
jlog.info('obtained tx\n' + btc.human_readable_transaction(
self.latest_tx))

2
jmclient/jmclient/wallet.py

@ -1366,7 +1366,7 @@ class SNICKERWalletMixin(object):
# version and locktime as currently specified in the BIP
# for 0/1 version SNICKER.
tx = btc.make_shuffled_tx([our_input, their_input], outputs,
version=2, locktime=0)
version=2, locktime=compute_tx_locktime())
# we need to know which randomized input is ours:
our_index = -1
for i, inp in enumerate(tx.vin):

Loading…
Cancel
Save