Browse Source

commands: gettransaction cmd now tests txid before returning tx

thanks for @JeremyRand
ref #5660
master
SomberNight 6 years ago
parent
commit
f72bb03af6
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/commands.py

2
electrum/commands.py

@ -701,6 +701,8 @@ class Commands:
tx = Transaction(raw) tx = Transaction(raw)
else: else:
raise Exception("Unknown transaction") raise Exception("Unknown transaction")
if tx.txid() != txid:
raise Exception("Mismatching txid")
return tx.as_dict() return tx.as_dict()
@command('') @command('')

Loading…
Cancel
Save