+ ledger.get_transaction()

This commit is contained in:
Lex Berezhny 2018-07-12 12:14:04 -04:00
parent 1ce5da80d6
commit adec715010

View file

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