getrawtransaction: first check if tx is in wallet

This commit is contained in:
thomasv 2013-09-15 12:50:19 +02:00
parent 22eaff9508
commit d6af11a8fe

View file

@ -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)