Browse Source

commands: gettransaction cmd now tests txid before returning tx

thanks for @JeremyRand
ref #5660
dependabot/pip/contrib/deterministic-build/ecdsa-0.13.3
SomberNight 5 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)
else:
raise Exception("Unknown transaction")
if tx.txid() != txid:
raise Exception("Mismatching txid")
return tx.as_dict()
@command('')

Loading…
Cancel
Save