electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit f72bb03af6d7f06a5d3fc911c806662ff0b4cd36
parent 3bfcfb49c3bcdfcb870ae3d91a8877f8b383267a
Author: SomberNight <somber.night@protonmail.com>
Date:   Sat,  2 Nov 2019 05:46:52 +0100

commands: gettransaction cmd now tests txid before returning tx

thanks for @JeremyRand
ref #5660

Diffstat:
Melectrum/commands.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/electrum/commands.py b/electrum/commands.py @@ -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('')