1
0

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

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