From d6af11a8fe67cf999f38d04a0e5f52408fd16e3a Mon Sep 17 00:00:00 2001 From: thomasv Date: Sun, 15 Sep 2013 12:50:19 +0200 Subject: [PATCH] getrawtransaction: first check if tx is in wallet --- lib/commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/commands.py b/lib/commands.py index 35db9628a..958393a0c 100644 --- 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)