forked from LBRYCommunity/lbry-sdk
ledger.get_transaction dropped in favor of ledger.db.get_transaction
This commit is contained in:
parent
141491f2da
commit
f06098978c
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ class Account(BaseAccount):
|
|||
claim = claims[maybe_claim_id]
|
||||
tx = None
|
||||
if claim:
|
||||
tx = yield self.ledger.get_transaction(claim['txid'])
|
||||
tx = yield self.ledger.db.get_transaction(txid=claim['txid'])
|
||||
else:
|
||||
log.warning(maybe_claim_id)
|
||||
if tx is not None:
|
||||
|
@ -96,7 +96,7 @@ class Account(BaseAccount):
|
|||
else:
|
||||
try:
|
||||
txid, nout = maybe_claim_id.split(':')
|
||||
tx = yield self.ledger.get_transaction(txid)
|
||||
tx = yield self.ledger.db.get_transaction(txid=txid)
|
||||
if tx.outputs[int(nout)].script.is_claim_involved:
|
||||
results['previous-success'] += 1
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue