commands: gettransaction cmd now tests txid before returning tx
thanks for @JeremyRand ref #5660
This commit is contained in:
@@ -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('')
|
||||
|
||||
Reference in New Issue
Block a user