tgetrawtransaction: first check if tx is in wallet - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d6af11a8fe67cf999f38d04a0e5f52408fd16e3a DIR parent 22eaff950889c4b4dcf538168b2848828512522f HTML Author: thomasv <thomasv@gitorious> Date: Sun, 15 Sep 2013 12:50:19 +0200 getrawtransaction: first check if tx is in wallet Diffstat: M lib/commands.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -326,6 +326,9 @@ class Commands: return None def getrawtransaction(self, tx_hash, height = 0): + tx = self.wallet.transactions.get(tx_hash) + if tx: + return tx height = int(height) return self.network.retrieve_transaction(tx_hash, height)