mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 00:41:31 +00:00
remove dead code: get_imported_balance
This commit is contained in:
parent
09a2254739
commit
4a33cf256b
1 changed files with 2 additions and 2 deletions
|
@ -407,6 +407,8 @@ class Abstract_Wallet:
|
||||||
for sec in private_keys:
|
for sec in private_keys:
|
||||||
pubkey = public_key_from_private_key(sec)
|
pubkey = public_key_from_private_key(sec)
|
||||||
keypairs[ pubkey ] = sec
|
keypairs[ pubkey ] = sec
|
||||||
|
|
||||||
|
# this is needed because we don't store imported pubkeys
|
||||||
if address in self.imported_keys.keys():
|
if address in self.imported_keys.keys():
|
||||||
txin['redeemPubkey'] = pubkey
|
txin['redeemPubkey'] = pubkey
|
||||||
|
|
||||||
|
@ -640,8 +642,6 @@ class Abstract_Wallet:
|
||||||
if include_change: o += ac.get_addresses(1)
|
if include_change: o += ac.get_addresses(1)
|
||||||
return o
|
return o
|
||||||
|
|
||||||
def get_imported_balance(self):
|
|
||||||
return self.get_balance(self.imported_keys.keys())
|
|
||||||
|
|
||||||
def get_account_balance(self, account):
|
def get_account_balance(self, account):
|
||||||
return self.get_balance(self.get_account_addresses(account))
|
return self.get_balance(self.get_account_addresses(account))
|
||||||
|
|
Loading…
Add table
Reference in a new issue