forked from LBRYCommunity/lbry-sdk
+ ledger.get_transaction()
This commit is contained in:
parent
1ce5da80d6
commit
adec715010
1 changed files with 6 additions and 0 deletions
|
@ -125,6 +125,12 @@ class BaseLedger(six.with_metaclass(LedgerRegistry)):
|
|||
if self.network.is_connected:
|
||||
yield self.update_account(account)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def get_transaction(self, txhash):
|
||||
raw, height, is_verified = yield self.db.get_transaction(txhash)
|
||||
if raw is not None:
|
||||
defer.returnValue(self.transaction_class(raw))
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def get_private_key_for_address(self, address):
|
||||
match = yield self.db.get_address(address)
|
||||
|
|
Loading…
Reference in a new issue