Make -stopatheight work with background sync #28809

issue Sjors opened this issue on November 7, 2023
  1. Sjors commented at 5:39 AM on November 7, 2023: member

    Please describe the feature you'd like to see added.

    When a background chainstate is present and -stopatheight is set below the assumeutxo height, stop when the background sync reaches that height.

    Is your feature related to a problem, if so please describe it.

    Currently the node will stop as soon as the tip grows, because of m_stop_at_height && index.nHeight >= m_stop_at_height.

    Describe the solution you'd like

    No response

    Describe any alternatives you've considered

    No response

    Please leave any additional context

    No response

  2. Sjors added the label Feature on Nov 7, 2023
  3. ajtowns commented at 12:43 AM on November 14, 2023: contributor

    Wouldn't this be better as a separate option, -stopbackgroundatheight or something ?

  4. Sjors commented at 5:10 AM on November 14, 2023: member

    Perhaps. But each height is only reached once, so I'm not sure if it's necessary.

  5. Sjors commented at 12:17 PM on May 6, 2025: member

    I stopped caring about this :-)

  6. Sjors closed this on May 6, 2025

Contributors
Labels

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-14 09:13 UTC

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