Skip to main content

Chain Spec

The Chain Specification is a configuration that defines all core constants of the JAM Chain. The JAM Chain itself has fixed parameters, but for testing and local deployments it can be useful to define alternative versions of these parameters.

Parameters

Each chain spec must define the following parameters. All other values are assumed to be set to the values of the Graypaper.

chain

The name of the spec.

V num_validators

The number of validators.

C num_cores

The number of cores.

P slot_duration

Slot time duration in seconds.

E epoch_duration

The number of slots in an epoch.

Y contest_duration

The epoch in which the ticket contest ends.
Constraint: Y>0Y<E\mathsf{Y} > 0 \land \mathsf{Y} < \mathsf{E}

N tickets_per_validator

The maximum number of tickets each validator can submit. This must be configurable to ensure that a 2/3+1 majority of validators can still finish the ticket contest successfully.
Constraint: (2V3+1)N>=E(\frac{2*\mathsf{V}}{3} + 1) * \mathsf{N} >= \mathsf{E}