From 1caf0da2bc288a12bb5e73030df4c57981696cdf Mon Sep 17 00:00:00 2001 From: AlexCato Date: Mon, 8 Jul 2019 19:44:22 +0200 Subject: [PATCH] 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. --- jmclient/jmclient/taker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/jmclient/taker.py b/jmclient/jmclient/taker.py index 93f20ed..3a941f5 100644 --- a/jmclient/jmclient/taker.py +++ b/jmclient/jmclient/taker.py @@ -801,7 +801,7 @@ class Taker(object): if i == n: pushed = jm_single().bc_interface.pushtx(tx) else: - nick_to_use = self.maker_utxo_data.keys()[i] + nick_to_use = list(self.maker_utxo_data.keys())[i] pushed = True else: jlog.info("Only self, random-peer and not-self broadcast "