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:
Victor Shyba 2018-10-10 19:07:36 -03:00 committed by Lex Berezhny
parent 6bdd9c9d78
commit b19fd8ed85

View file

@ -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
)