From b19fd8ed85a23d2b97c7c78f8625423cea136b7e Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 10 Oct 2018 19:07:36 -0300 Subject: [PATCH] lower batch size so it works on restricted platforms Windows and maybe some other platforms have a lower limit on sqlite variables. --- torba/baseaccount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torba/baseaccount.py b/torba/baseaccount.py index cd6b97b5a..a8616b650 100644 --- a/torba/baseaccount.py +++ b/torba/baseaccount.py @@ -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 )