-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add one more situation where we write the cached chain data.
bitcoinx will normally rebuild the chain state from the Genesis block every time. We have a system for writing the chain data to disk on application shutdown. If someone always kills the application and it does not shut down properly, this can result in a long application lock up on start up while bitcoinx rebuilds the chain data from the Genesis block. This commit writes the chain data when initial synchronisation of headers to the tip on any header server is complete, which should ensure that we capture both any processing of outstanding unprocessed headers and any new synchronised headers on application startup.
- Loading branch information
1 parent
cd44e04
commit 4de5f4c
Showing
3 changed files
with
17 additions
and
5 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
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
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