URI: 
       tcommands: gettransaction cmd now tests txid before returning tx - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit f72bb03af6d7f06a5d3fc911c806662ff0b4cd36
   DIR parent 3bfcfb49c3bcdfcb870ae3d91a8877f8b383267a
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Sat,  2 Nov 2019 05:46:52 +0100
       
       commands: gettransaction cmd now tests txid before returning tx
       
       tthanks for @JeremyRand
       ref #5660
       
       Diffstat:
         M electrum/commands.py                |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/electrum/commands.py b/electrum/commands.py
       t@@ -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('')