mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
getrawtransaction: first check if tx is in wallet
This commit is contained in:
parent
22eaff9508
commit
d6af11a8fe
1 changed files with 3 additions and 0 deletions
|
@ -326,6 +326,9 @@ class Commands:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def getrawtransaction(self, tx_hash, height = 0):
|
def getrawtransaction(self, tx_hash, height = 0):
|
||||||
|
tx = self.wallet.transactions.get(tx_hash)
|
||||||
|
if tx:
|
||||||
|
return tx
|
||||||
height = int(height)
|
height = int(height)
|
||||||
return self.network.retrieve_transaction(tx_hash, height)
|
return self.network.retrieve_transaction(tx_hash, height)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue