diff options
author | stickies-v <stickies-v@protonmail.com> | 2024-03-07 11:23:00 +0000 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2024-04-10 17:01:27 +0200 |
commit | ee178dfcc1175e0af8163216c9c024f4bfc97965 (patch) | |
tree | 29d04d09dcc21862dcaf6627986a68b38f1e31bc /test | |
parent | 55361a15d1aa6984051441bce88112000688fb43 (diff) | |
download | bitcoin-ee178dfcc1175e0af8163216c9c024f4bfc97965.tar.xz |
Add TimeOffsets helper class
This helper class is an alternative to CMedianFilter, but without a
lot of the special logic and exceptions that we needed while it was
still used for consensus.
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/feature_maxtipage.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/feature_maxtipage.py b/test/functional/feature_maxtipage.py index 51f37ef1e0..a1774a5395 100755 --- a/test/functional/feature_maxtipage.py +++ b/test/functional/feature_maxtipage.py @@ -43,6 +43,10 @@ class MaxTipAgeTest(BitcoinTestFramework): self.generate(node_miner, 1) assert_equal(node_ibd.getblockchaininfo()['initialblockdownload'], False) + # reset time to system time so we don't have a time offset with the ibd node the next + # time we connect to it, ensuring TimeOffsets::WarnIfOutOfSync() doesn't output to stderr + node_miner.setmocktime(0) + def run_test(self): self.log.info("Test IBD with maximum tip age of 24 hours (default).") self.test_maxtipage(DEFAULT_MAX_TIP_AGE, set_parameter=False) |