forked from LBRYCommunity/lbry-sdk
fixes #1653
This commit is contained in:
parent
8d507c4b73
commit
6f7f3bb316
1 changed files with 4 additions and 2 deletions
|
@ -202,8 +202,10 @@ class LbryWalletManager(BaseWalletManager):
|
|||
return manager
|
||||
|
||||
async def _migrate_addresses(self, receiving_addresses: set, change_addresses: set):
|
||||
migrated_receiving = set((await self.default_account.receiving.generate_keys(0, len(receiving_addresses))))
|
||||
migrated_change = set((await self.default_account.change.generate_keys(0, len(change_addresses))))
|
||||
async with self.default_account.receiving.address_generator_lock:
|
||||
migrated_receiving = set((await self.default_account.receiving._generate_keys(0, len(receiving_addresses))))
|
||||
async with self.default_account.change.address_generator_lock:
|
||||
migrated_change = set((await self.default_account.change._generate_keys(0, len(change_addresses))))
|
||||
receiving_addresses = set(map(self.default_account.ledger.public_key_to_address, receiving_addresses))
|
||||
change_addresses = set(map(self.default_account.ledger.public_key_to_address, change_addresses))
|
||||
if not any(change_addresses.difference(migrated_change)):
|
||||
|
|
Loading…
Reference in a new issue