-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RPC rescans were performing batching of 2000 blocks at a time, but separate database updates would occur for each block that contained any matching transactions. To improve rescan performance, batch the update using a background goroutine worker when the total amount of transactions exceeds a value (currently untuned, but I observe significant rescan times with a first try guess of 256).
- Loading branch information
Showing
1 changed file
with
104 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters