fix flaky MAX_FUTURE_TIME test (#15499)

fix MAX_FUTURE_TIME tests
This commit is contained in:
Arvid Norberg 2023-06-13 16:56:25 +02:00 committed by GitHub
parent 2e60325894
commit ed0f0eba67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1503,10 +1503,10 @@ class TestBlockHeaderValidation:
# the test constants set MAX_FUTURE_TIME to 10 days, restore it to
# default for this test
constants = bt.constants.replace(SOFT_FORK2_HEIGHT=0, MAX_FUTURE_TIME=5 * 60)
time_delta = 2 * 60
time_delta = 2 * 60 + 1
else:
constants = bt.constants.replace(MAX_FUTURE_TIME=5 * 60)
time_delta = 5 * 60
time_delta = 5 * 60 + 1
blocks = bt.get_consecutive_blocks(1)