mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-10 12:29:49 +03:00
3b084a165b
* configure isort to add the future annotations import * apply the new isort setting * remove type ignores for new mypy (#13539) https://pypi.org/project/mypy/0.981/ * another
22 lines
776 B
Python
22 lines
776 B
Python
from __future__ import annotations
|
|
|
|
from chia.consensus.default_constants import DEFAULT_CONSTANTS
|
|
|
|
test_constants = DEFAULT_CONSTANTS.replace(
|
|
**{
|
|
"MIN_PLOT_SIZE": 18,
|
|
"MIN_BLOCKS_PER_CHALLENGE_BLOCK": 12,
|
|
"DIFFICULTY_STARTING": 2**9,
|
|
"DISCRIMINANT_SIZE_BITS": 16,
|
|
"SUB_EPOCH_BLOCKS": 170,
|
|
"WEIGHT_PROOF_THRESHOLD": 2,
|
|
"WEIGHT_PROOF_RECENT_BLOCKS": 380,
|
|
"DIFFICULTY_CONSTANT_FACTOR": 33554432,
|
|
"NUM_SPS_SUB_SLOT": 16, # Must be a power of 2
|
|
"MAX_SUB_SLOT_BLOCKS": 50,
|
|
"EPOCH_BLOCKS": 340,
|
|
"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
|
|
}
|
|
)
|