commands: gettransaction cmd now tests txid before returning tx

thanks for @JeremyRand
ref #5660
This commit is contained in:
SomberNight 2019-11-02 05:46:52 +01:00
parent 3bfcfb49c3
commit f72bb03af6
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -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('')