wallet: Sync progress not saved if interrupted #25010

issue ryanofsky opened this issue on April 27, 2022
  1. ryanofsky commented at 6:11 PM on April 27, 2022: contributor

    Originally posted by @S3RK in #24984#pullrequestreview-952900468

    With current implementation we don't save the rescan progress and on the next load we will have to start from scratch. Is it possible to save the last processed blocked at shutdown?

    It would be nice if wallet code would call WriteBestBlock and save the last scan position if it is interrupted during a sync. This could be implemented by trying to save the scan position during the shutdown, or by just periodically saving the scan position after an interval, similar to indexing code which saves sync position once every 30 seconds:

    https://github.com/bitcoin/bitcoin/blob/f0a834e2f10a0aa60c7cc76e9f3eb090168a32e5/src/index/base.cpp#L170-L175

  2. ryanofsky renamed this:
    wallet: Rescan progress not saved if interrupted
    wallet: Sync progress not saved if interrupted
    on Apr 27, 2022
  3. bitcoin deleted a comment on May 1, 2022
  4. bitcoin deleted a comment on May 1, 2022
  5. bitcoin deleted a comment on May 1, 2022
  6. bitcoin deleted a comment on May 1, 2022
  7. MarcoFalke closed this on Jul 12, 2022

  8. sidhujag referenced this in commit 0a9ad161d8 on Jul 12, 2022
  9. bitcoin locked this on Jul 12, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 15:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me