mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 16:31:29 +00:00
make wallet.is_change faster
This commit is contained in:
parent
1c67cfe01b
commit
d1e2ca4bc5
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ class Abstract_Wallet(PrintError):
|
|||
def is_change(self, address):
|
||||
if not self.is_mine(address):
|
||||
return False
|
||||
return address in self.change_addresses
|
||||
return self.get_address_index(address)[0]
|
||||
|
||||
def get_address_index(self, address):
|
||||
if hasattr(self, '_addr_to_addr_index'):
|
||||
|
|
Loading…
Add table
Reference in a new issue