Electric-Coin-Company / zcash-android-wallet-sdk

Native Android SDK for Zcash
MIT License
5 stars 10 forks source link

Raise the batch size outside of sandblasting to 1000 #1365

Closed str4d closed 3 months ago

str4d commented 9 months ago

Currently SYNC_BATCH_SIZE is set to 100. This is fine for scanning during the sandblasting region of the chain, but outside that we should raise the limit to 1000.

Eventually the batch size will be dynamic in number of blocks (instead based on subtree boundaries, which are related to the number of outputs which is where our size and scanning costs come from), but this is a quick intermediate step.

Sandblasting period (based on the dates corresponding to block heights; sandblasting started in late June 2022 and mostly ended in mid-April 2023): 1,710,000 to 2,050,000