Browse Source

Merge #309: Fix UIH2 avoidance algo when sender input utxo > payment

ac0ecfb Fix UIH2 avoidance algo when sender input utxo > payment (AdamISZ)
master
AdamISZ 7 years ago
parent
commit
d9c7c4b65c
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 2
      jmclient/jmclient/maker.py

2
jmclient/jmclient/maker.py

@ -565,7 +565,7 @@ class P2EPMaker(Maker):
# fairly conservative (but guess by necessity).
fee_for_select = estimate_tx_fee(len(tx['ins']) + 4, 2,
txtype=self.wallet.get_txtype())
approx_sum = max_sender_amt - largest_out + fee_for_select
approx_sum = max_sender_amt - self.receiving_amount + fee_for_select
try:
my_utxos = self.wallet.select_utxos(self.mixdepth, approx_sum)
not_uih2 = True

Loading…
Cancel
Save