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]
|
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:
|
||||||
|
|
Loading…
Reference in a new issue