diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-26 07:36:03 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-26 07:36:07 +0100 |
commit | dd405add6ecff44bde3924ff7bfa4719b36f3596 (patch) | |
tree | aba892d990dad475112299e29aea872671213553 /contrib | |
parent | 01beb46f8db122c78c15e37eef38a87ae4452449 (diff) | |
parent | 75656adfd2020a059ab6bb2c8dfcd7b245feea7e (diff) | |
download | bitcoin-dd405add6ecff44bde3924ff7bfa4719b36f3596.tar.xz |
Merge bitcoin/bitcoin#24154: test: add functional test for `-maxtipage` parameter
75656adfd2020a059ab6bb2c8dfcd7b245feea7e test: add functional test for `-maxtipage` parameter (Sebastian Falbesoner)
Pull request description:
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.
ACKs for top commit:
MarcoFalke:
review ACK 75656adfd2020a059ab6bb2c8dfcd7b245feea7e
Tree-SHA512: 0a10dca13cb18c29e64fc8412f4c8f2bcaff1bab8645bd85266c242ba88ce036a150c03cbbe9810c3bb44649810af0aa9cb3584dbae886a7bdb16b72150d08de
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions