Browse Source

Fix crash when pushing TX via "not-self"

Ran into a crash with sendpayment today, when tx_broadcast in joinmarket.cfg is set to not-self.

Before the change, it crashed on the modified line because type dict_keys is returned here, which cannot be used with an index.
master
AlexCato 7 years ago committed by GitHub
parent
commit
1caf0da2bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      jmclient/jmclient/taker.py

2
jmclient/jmclient/taker.py

@ -801,7 +801,7 @@ class Taker(object):
if i == n: if i == n:
pushed = jm_single().bc_interface.pushtx(tx) pushed = jm_single().bc_interface.pushtx(tx)
else: else:
nick_to_use = self.maker_utxo_data.keys()[i] nick_to_use = list(self.maker_utxo_data.keys())[i]
pushed = True pushed = True
else: else:
jlog.info("Only self, random-peer and not-self broadcast " jlog.info("Only self, random-peer and not-self broadcast "

Loading…
Cancel
Save