ledger.get_transaction dropped in favor of ledger.db.get_transaction

This commit is contained in:
Lex Berezhny 2018-10-08 19:33:55 -04:00
parent 141491f2da
commit f06098978c

View file

@ -60,7 +60,7 @@ class Account(BaseAccount):
claim = claims[maybe_claim_id] claim = claims[maybe_claim_id]
tx = None tx = None
if claim: if claim:
tx = yield self.ledger.get_transaction(claim['txid']) tx = yield self.ledger.db.get_transaction(txid=claim['txid'])
else: else:
log.warning(maybe_claim_id) log.warning(maybe_claim_id)
if tx is not None: if tx is not None:
@ -96,7 +96,7 @@ class Account(BaseAccount):
else: else:
try: try:
txid, nout = maybe_claim_id.split(':') 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: if tx.outputs[int(nout)].script.is_claim_involved:
results['previous-success'] += 1 results['previous-success'] += 1
else: else: