mirror of
https://github.com/romanz/electrs.git
synced 2026-08-16 13:00:30 +02:00
Fix RPC results sort in history.py
Traceback (most recent call last):
File "history.py", line 148, in <module>
main()
File "history.py", line 70, in main
for balance, addr in sorted(zip(balances, args.address)):
TypeError: '<' not supported between instances of 'dict' and 'dict'
This commit is contained in:
parent
844723f5f4
commit
1fa77aefa6
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ def main():
|
|||
client.request('blockchain.scripthash.get_balance', script_hash)
|
||||
for script_hash in script_hashes
|
||||
)
|
||||
for balance, addr in sorted(zip(balances, args.address)):
|
||||
for addr, balance in sorted(zip(args.address, balances), key=lambda v: v[0]):
|
||||
if balance["confirmed"]:
|
||||
log.info("{}: confirmed {:,.5f} mBTC", addr, balance["confirmed"] / 1e5)
|
||||
if balance["unconfirmed"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue