Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: attempt to handle assertion error due to ungraceful shutdown on …
…client restart Replace assertion with proper error handling in checkpointsync.cpp to gracefully handle cases where the client doesn't shut down properly. This change: - Handles the assertion that occasionally causes the client to become unresponsive - Implements a multi-step recovery process to find valid checkpoints - Adds detailed logging for diagnostic purposes - Maintains chain consistency by preferring recent valid blocks - Suggests a reindex as a last resort This fix prevents the client from crashing when mapBlockIndex doesn't contain the expected checkpoint after an ungraceful shutdown (power loss, hardware failure, etc).
- Loading branch information