Skip to content

Commit

Permalink
[#1206] Optimize SYNC_BATCH_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaR committed Sep 5, 2023
1 parent 8005883 commit 1e7983e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Unreleased
- `CompactBlockProcessor` now processes compact blocks from the lightwalletd server with spend-before-sync algorithm
(i.e. non-linear order). This feature shortens the time after which a wallet's spendable balance can be used.
- The block synchronization mechanism is about one-third faster thanks to the optimized
`CompactBlockProcessor.SYNC_BATCH_SIZE`. Issue **#1206**.

### Added
- New `syncAlgorithm` parameter of `Synchronizer.new()` and `WalletCoordinator()` to select preferred
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ class CompactBlockProcessor internal constructor(
* number the more granular information can be provided about scan state. Unfortunately, it may also lead to
* a lot of overhead during scanning.
*/
internal const val SYNC_BATCH_SIZE = 10
internal const val SYNC_BATCH_SIZE = 100

/**
* Default size of batch of blocks for running the transaction enhancing.
Expand Down

0 comments on commit 1e7983e

Please sign in to comment.