test: add functional test for `-maxtipage` parameter #24154

pull theStack wants to merge 1 commits into bitcoin:master from theStack:202201-test-add_maxtipage_test changing 2 files +57 −0
  1. theStack commented at 3:25 PM on January 25, 2022: member

    This PR adds a missing test for the -maxtipage parameter which controls what is the allowed maximum tip age for leaving IBD: https://github.com/bitcoin/bitcoin/blob/792d0d8d512cf8ddca200317b74ce550c1a1a428/src/init.cpp#L540

    Relevant code path in the CChainState::IsInitialBlockDownload method: https://github.com/bitcoin/bitcoin/blob/792d0d8d512cf8ddca200317b74ce550c1a1a428/src/validation.cpp#L1479-L1480

    The test is pretty simple and should be self-explanatory.

  2. test: add functional test for `-maxtipage` parameter 75656adfd2
  3. laanwj commented at 3:35 PM on January 25, 2022: member

    Concept ACK, thanks for adding a test for this.

  4. laanwj added the label Tests on Jan 25, 2022
  5. DrahtBot commented at 11:59 PM on January 25, 2022: member

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #24149 (Signing support for Miniscript Descriptors by darosior)
    • #24148 (Miniscript support in Output Descriptors by darosior)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  6. MarcoFalke commented at 6:35 AM on January 26, 2022: member

    review ACK 75656adfd2020a059ab6bb2c8dfcd7b245feea7e

  7. MarcoFalke merged this on Jan 26, 2022
  8. MarcoFalke closed this on Jan 26, 2022

  9. theStack deleted the branch on Jan 26, 2022
  10. sidhujag referenced this in commit c9721a51a6 on Jan 28, 2022
  11. DrahtBot locked this on Jan 26, 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-14 21:13 UTC

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