Skip to content
Snippets Groups Projects
Commit ad7b27f2 authored by matograine's avatar matograine
Browse files

[fix] #342 : balance command sums up many times the same pubkey

    return error in that case.
parent 3b4005ca
No related branches found
No related tags found
No related merge requests found
Pipeline #9768 passed
......@@ -48,6 +48,12 @@ async def cmd_amount(ctx, pubkeys):
checked_pubkeys = list()
for pubkey in pubkeys:
pubkey = check_public_key(pubkey, True)
if pubkey in checked_pubkeys:
message_exit(
"Error : pubkey {0} was specified many times".format(
pubkey_with_checksum(pubkey)
)
)
checked_pubkeys.append(pubkey)
if not pubkey:
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment