Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pyjamaz/graypaper_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@
GAS_REFINE = 1_000_000_000 # GR
MAXIMUM_AGE_LOOKUP_ANCHOR = 24 # L

elif TEST_SUITE == 'fuzz':
CORE_COUNT = 85 #C
EPOCH_TIMESLOTS = 60 #E
TICKET_SUBMISSION_END_SLOT = 50 #Y
ROTATION_PERIOD_CORE = 5 # R
MAXIMUM_EXTRINSIC_TICKETS = 4 # K
GAS_TOTAL = 875_000_000 # GT
GAS_REFINE = 1_250_000_000 # GR
PREIMAGE_EXPUNGE_TIMESLOTS = 900 #D=
MAXIMUM_AGE_LOOKUP_ANCHOR = 600 # L
VALIDATOR_COUNT = 255 #V


def valid_validator_count(count: int, *, core_count: int = CORE_COUNT) -> bool:
return (
Expand Down
8 changes: 4 additions & 4 deletions pyjamaz/settings.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os

TEST_SUITE = 'tiny' # tiny or full
TEST_SUITE = 'tiny' # tiny, full or fuzz
GP_VERSION = '0.8.0'
APP_VERSION = '0.3.2'
APP_VERSION = '0.3.3'


def _apply_jam_fuzz_spec_override():
Expand All @@ -12,8 +12,8 @@ def _apply_jam_fuzz_spec_override():
return

jam_fuzz_spec = os.getenv("JAM_FUZZ_SPEC")
if jam_fuzz_spec not in ("tiny", "full"):
raise RuntimeError("JAM_FUZZ_SPEC must be set to 'tiny' or 'full' when JAM_FUZZ is set")
if jam_fuzz_spec not in ("tiny", "full", "fuzz"):
raise RuntimeError("JAM_FUZZ_SPEC must be set to 'tiny', 'full' or 'fuzz' when JAM_FUZZ is set")
TEST_SUITE = jam_fuzz_spec


Expand Down
Loading