From 40e0662646e91ec03d86e6a649244ff3d462ad81 Mon Sep 17 00:00:00 2001 From: Arjan Zijderveld <5286904+arjanz@users.noreply.github.com> Date: Wed, 21 Oct 2026 12:32:36 +0200 Subject: [PATCH] Added fuzz spec to fuzzer --- pyjamaz/graypaper_constants.py | 12 ++++++++++++ pyjamaz/settings.py | 8 ++++---- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/pyjamaz/graypaper_constants.py b/pyjamaz/graypaper_constants.py index eb68d291..ca4e65be 100644 --- a/pyjamaz/graypaper_constants.py +++ b/pyjamaz/graypaper_constants.py @@ -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 ( diff --git a/pyjamaz/settings.py b/pyjamaz/settings.py index f38afcd4..e4b52d53 100644 --- a/pyjamaz/settings.py +++ b/pyjamaz/settings.py @@ -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(): @@ -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