downloaded blocks are not stored upon shutdown #9703

issue rebroad openend this issue on February 7, 2017
  1. rebroad commented at 7:55 am on February 7, 2017: contributor
    Especially noticeable during initial block download, there can be quite a number of blocks downloaded which do not get processed (i.e. not saved) when shutdown is requested, yet activation of chain (which takes much longer) is permitted to continue.
  2. laanwj commented at 11:36 am on February 7, 2017: member

    yet activation of chain (which takes much longer) is permitted to continue.

    That’s weird - unless this changed recently, activation of the chain is supposed to run on next start, not continue.

    Shutdown is really supposed to break off things as soon as possible. So I’m not sure this should go in.

  3. jonasschnelli commented at 12:52 pm on February 7, 2017: contributor
    IMO shutdown means shutdown. We already have issues with delayed shutdowns. In memory data that A) won’t lead to corruption when not written down – or B) can be quickly rebuilt, should be ignored/flushed if a shutdown is requested.
  4. paveljanik commented at 5:19 pm on February 7, 2017: contributor
    The same applies when killed. The faster the shutdown, the better. Not a bug.
  5. unsystemizer commented at 5:24 pm on February 7, 2017: contributor
    Ironically you recently also opened an issue in the opposite direction, that shutdown is too slow :-) - https://github.com/bitcoin/bitcoin/issues/9668
  6. ghost commented at 6:03 pm on February 7, 2017: none
    You can add a pause button, as do the customers of online MMMO games
  7. fanquake closed this on Mar 7, 2018

  8. rebroad commented at 5:48 pm on March 19, 2018: contributor
    @paveljanik I agree, although if it just stores blocks and doesn’t try adding them to the chain then the time spent is very minimal - far less time than any of the delays mentioned in #9668
  9. DrahtBot locked this on Sep 8, 2021

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: 2024-11-21 15:12 UTC

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