Browse Source

getrawtransaction: first check if tx is in wallet

283
thomasv 11 years ago
parent
commit
d6af11a8fe
  1. 3
      lib/commands.py

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

Loading…
Cancel
Save