ttransaction.BIP69_sort: use namedtuple fields - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2d352bc3f0a55674b8f040d340d185fa0d167076 DIR parent c4e09fa8743b3f2ec01dfd50b9447f9c65636f74 HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 22 Oct 2018 20:43:31 +0200 ttransaction.BIP69_sort: use namedtuple fields Diffstat: M electrum/transaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/transaction.py b/electrum/transaction.py t@@ -1016,7 +1016,7 @@ class Transaction: if inputs: self._inputs.sort(key = lambda i: (i['prevout_hash'], i['prevout_n'])) if outputs: - self._outputs.sort(key = lambda o: (o[2], self.pay_script(o[0], o[1]))) + self._outputs.sort(key = lambda o: (o.value, self.pay_script(o.type, o.address))) def serialize_output(self, output): output_type, addr, amount = output