mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
transaction.BIP69_sort: use namedtuple fields
This commit is contained in:
parent
c4e09fa874
commit
2d352bc3f0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue