Compare commits

...

3 Commits

Author SHA1 Message Date
Jack Nelson b8393773d0
fix tests 2023-06-30 16:45:18 -04:00
Jack Nelson d47d502f84
Update block_tools.py 2023-06-30 14:25:20 -04:00
Jack Nelson 97c4a4b46c
add fork height const 2023-06-26 16:03:37 -04:00
2 changed files with 4 additions and 4 deletions

View File

@ -140,9 +140,9 @@ test_constants = DEFAULT_CONSTANTS.replace(
"SUB_SLOT_TIME_TARGET": 600, # The target number of seconds per slot, mainnet 600
"SUB_SLOT_ITERS_STARTING": 2**10, # Must be a multiple of 64
"NUMBER_ZERO_BITS_PLOT_FILTER": 1, # H(plot signature of the challenge) must start with these many zeroes
"MAX_FUTURE_TIME": 3600
* 24
* 10, # Allows creating blockchains with timestamps up to 10 days in the future, for testing
# Allows creating blockchains with timestamps up to 10 days in the future, for testing
"MAX_FUTURE_TIME": 3600 * 24 * 10,
"MAX_FUTURE_TIME2": 3600 * 24 * 10, # After the Fork
"MEMPOOL_BLOCK_BUFFER": 6,
}
)

View File

@ -1510,7 +1510,7 @@ class TestBlockHeaderValidation:
# enable softfork2 at height 0, to make it apply to this test
# 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)
constants = bt.constants.replace(SOFT_FORK2_HEIGHT=0, MAX_FUTURE_TIME=5 * 60, MAX_FUTURE_TIME2=2 * 60)
time_delta = 2 * 60 + 1
else:
constants = bt.constants.replace(MAX_FUTURE_TIME=5 * 60)