The repository binary test vector files can be converted to their JSON equivalents for easier inspection and debugging. Use the provided conversion script to transform binary files into human-readable JSON format:
./scripts/convert-all.sh
This script requires the jam-types Python library to be installed.
Validation scripts are included to verify the JSON files against the expected ASN.1 syntax provided with the test vectors. These scripts currently rely on my asn1tools fork.
./scripts/validate-all.sh.sh
For more information refer to the community docs.
chain: tiny
num_validators: 6
num_cores: 2
preimage_expunge_period: 32
slot_duration: 6
epoch_duration: 12
contest_duration: 10
tickets_per_validator: 3
max_tickets_per_extrinsic: 3
rotation_period: 4
num_ec_pieces_per_segment: 1026
max_block_gas: 20000000
max_refine_gas: 1000000000
All parameters here must match the Gray Paper.
chain: full
num_validators: 1023
num_cores: 341
preimage_expunge_period: 19200
slot_duration: 6
epoch_duration: 600
contest_duration: 500
tickets_per_validator: 2
max_tickets_per_extrinsic: 16
rotation_period: 10
num_ec_pieces_per_segment: 6
max_block_gas: 3500000000
max_refine_gas: 5000000000