forked from LBRYCommunity/lbry-sdk
lower batch size so it works on restricted platforms
Windows and maybe some other platforms have a lower limit on sqlite variables.
This commit is contained in:
parent
6bdd9c9d78
commit
b19fd8ed85
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class HierarchicalDeterministic(AddressManager):
|
|||
keys_batch, final_keys = [], []
|
||||
for index in range(start, end+1):
|
||||
keys_batch.append((index, self.public_key.child(index)))
|
||||
if len(keys_batch) % 2000 == 0:
|
||||
if len(keys_batch) % 180 == 0:
|
||||
yield self.db.add_keys(
|
||||
self.account, self.chain_number, keys_batch
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue