electrum

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

commit d6af11a8fe67cf999f38d04a0e5f52408fd16e3a
parent 22eaff950889c4b4dcf538168b2848828512522f
Author: thomasv <thomasv@gitorious>
Date:   Sun, 15 Sep 2013 12:50:19 +0200

getrawtransaction: first check if tx is in wallet

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

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