mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 20:35:13 +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)
|
||||
else:
|
||||
raise Exception("Unknown transaction")
|
||||
if tx.txid() != txid:
|
||||
raise Exception("Mismatching txid")
|
||||
return tx.as_dict()
|
||||
|
||||
@command('')
|
||||
|
|
Loading…
Add table
Reference in a new issue