mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-29 16:31:25 +00:00
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
|
return manager
|
||||||
|
|
||||||
async def _migrate_addresses(self, receiving_addresses: set, change_addresses: set):
|
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))))
|
async with self.default_account.receiving.address_generator_lock:
|
||||||
migrated_change = set((await self.default_account.change.generate_keys(0, len(change_addresses))))
|
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))
|
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))
|
change_addresses = set(map(self.default_account.ledger.public_key_to_address, change_addresses))
|
||||||
if not any(change_addresses.difference(migrated_change)):
|
if not any(change_addresses.difference(migrated_change)):
|
||||||
|
|
Loading…
Add table
Reference in a new issue