mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-05 05:15:12 +00:00
commands: gettransaction cmd now tests txid before returning tx
thanks for @JeremyRand ref #5660
This commit is contained in:
parent
3bfcfb49c3
commit
f72bb03af6
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue