BIP8: clarify timeoutheight behaviour and requirements #1019

pull ajtowns wants to merge 1 commits into bitcoin:master from ajtowns:202010-bip8-trivial changing 1 files +3 −1
  1. ajtowns commented at 8:23 AM on October 17, 2020: contributor

    When lockinontimeout is true, we don't transition directly from STARTED to LOCKED_IN, so don't imply that we do.

    If startheight or timeoutheight are not on a retarget boundary, they behave as if they had been rounded up to the next retarget boundary, so to keep things simple, require them to be at a boundary.

    If timeoutheight is less than two retarget periods later than startheight, behaviour when lockinontimeout is true (one retarget period of STARTED, one of MUST_SIGNAL, one of LOCKED_IN, then ACTIVE) will not match behaviour when lockinontimeout is false (one retarget period of STARTED, then either LOCKED_IN or FAILED), so disallow that as well.

  2. BIP8: clarify timeoutheight behaviour and requirements
    When lockinontimeout is true, we don't transition directly from STARTED
    to LOCKED_IN, so don't imply that we do.
    
    If startheight or timeoutheight are not on a retarget boundary, they
    behave as if they had been rounded up to the next retarget boundary,
    so to keep things simple, require them to be at a boundary.
    
    If timeoutheight is less than two retarget periods later than startheight,
    behaviour when lockinontimeout is true (one retarget period of STARTED,
    one of MUST_SIGNAL, one of LOCKED_IN, then ACTIVE) will not match
    behaviour when lockinontimeout is false (one retarget period of STARTED,
    then either LOCKED_IN or FAILED), so disallow that as well.
    b6b5b92337
  3. ajtowns cross-referenced this on Oct 19, 2020 from issue BIP 8 - replace FAILING with MUST_SIGNAL by ajtowns
  4. ajtowns cross-referenced this on Oct 19, 2020 from issue BIP8: directly support special cases by ajtowns
  5. luke-jr merged this on Oct 19, 2020
  6. luke-jr closed this on Oct 19, 2020

  7. ajtowns cross-referenced this on Mar 19, 2021 from issue BIP8: remove redundant and conflicting sentence from param selection and fix typo by jonasnick

github-metadata-mirror

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

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