forked from LBRYCommunity/lbry-sdk
remove unused arg
This commit is contained in:
parent
1f815cf2d2
commit
a17a31acf5
1 changed files with 4 additions and 5 deletions
|
@ -383,11 +383,10 @@ class HubDB:
|
||||||
return v.amount
|
return v.amount
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def get_effective_amount(self, claim_hash: bytes, support_only=False) -> int:
|
def get_effective_amount(self, claim_hash: bytes) -> int:
|
||||||
support_amount = self._get_active_amount(claim_hash, ACTIVATED_SUPPORT_TXO_TYPE, self.db_height + 1)
|
return self._get_active_amount(
|
||||||
if support_only:
|
claim_hash, ACTIVATED_SUPPORT_TXO_TYPE, self.db_height + 1
|
||||||
return support_only
|
) + self._get_active_amount(claim_hash, ACTIVATED_CLAIM_TXO_TYPE, self.db_height + 1)
|
||||||
return support_amount + self._get_active_amount(claim_hash, ACTIVATED_CLAIM_TXO_TYPE, self.db_height + 1)
|
|
||||||
|
|
||||||
def get_url_effective_amount(self, name: str, claim_hash: bytes) -> Optional['EffectiveAmountKey']:
|
def get_url_effective_amount(self, name: str, claim_hash: bytes) -> Optional['EffectiveAmountKey']:
|
||||||
for k, v in self.prefix_db.effective_amount.iterate(prefix=(name,)):
|
for k, v in self.prefix_db.effective_amount.iterate(prefix=(name,)):
|
||||||
|
|
Loading…
Reference in a new issue