[CHIA-3205] unify test constants on the ones used by BlockTools
#19768
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose:
Any test that uses the test blockchains must match test constants with
BlockTools
, since it generates those test chains.It minimizes the risk of diversion by using a single set of test constants.
Here are the
BlockTools
's constants: https://github.com/Chia-Network/chia-blockchain/blob/main/chia/simulator/block_tools.py#L129Note
BlockTools
is actually considered "production" code, since it's part of the simulator, which is a supported developer tool.This adds another dependency from the tests to production code, which is fine.
This alters
DIFFICULTY_STARTING
from2^9
->2^10
for the tests.Current Behavior:
BlockTools
has its own test_constants and all tests have their own.New Behavior:
BlockTools
and test share the same test constants.