mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 10:19:26 +02:00
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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user