mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 00:41:31 +00:00
fix #3890
This commit is contained in:
parent
3bfaaad774
commit
7e77baf4fb
1 changed files with 11 additions and 10 deletions
|
@ -208,7 +208,7 @@ class Abstract_Wallet(PrintError):
|
||||||
self.up_to_date = False
|
self.up_to_date = False
|
||||||
|
|
||||||
# locks: if you need to take multiple ones, acquire them in the order they are defined here!
|
# locks: if you need to take multiple ones, acquire them in the order they are defined here!
|
||||||
self.lock = threading.Lock()
|
self.lock = threading.RLock()
|
||||||
self.transaction_lock = threading.RLock()
|
self.transaction_lock = threading.RLock()
|
||||||
|
|
||||||
self.check_history()
|
self.check_history()
|
||||||
|
@ -1947,6 +1947,7 @@ class Deterministic_Wallet(Abstract_Wallet):
|
||||||
|
|
||||||
def create_new_address(self, for_change=False):
|
def create_new_address(self, for_change=False):
|
||||||
assert type(for_change) is bool
|
assert type(for_change) is bool
|
||||||
|
with self.lock:
|
||||||
addr_list = self.change_addresses if for_change else self.receiving_addresses
|
addr_list = self.change_addresses if for_change else self.receiving_addresses
|
||||||
n = len(addr_list)
|
n = len(addr_list)
|
||||||
x = self.derive_pubkeys(for_change, n)
|
x = self.derive_pubkeys(for_change, n)
|
||||||
|
|
Loading…
Add table
Reference in a new issue