configs

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 2 Imported by: 48

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mainnet = &common.Spec{
	Phase0Preset: common.Phase0Preset{
		MAX_COMMITTEES_PER_SLOT:          64,
		TARGET_COMMITTEE_SIZE:            128,
		MAX_VALIDATORS_PER_COMMITTEE:     2048,
		SHUFFLE_ROUND_COUNT:              90,
		HYSTERESIS_QUOTIENT:              4,
		HYSTERESIS_DOWNWARD_MULTIPLIER:   1,
		HYSTERESIS_UPWARD_MULTIPLIER:     5,
		SAFE_SLOTS_TO_UPDATE_JUSTIFIED:   8,
		MIN_DEPOSIT_AMOUNT:               1000_000_000,
		MAX_EFFECTIVE_BALANCE:            32_000_000_000,
		EFFECTIVE_BALANCE_INCREMENT:      1_000_000_000,
		MIN_ATTESTATION_INCLUSION_DELAY:  1,
		SLOTS_PER_EPOCH:                  32,
		MIN_SEED_LOOKAHEAD:               1,
		MAX_SEED_LOOKAHEAD:               4,
		EPOCHS_PER_ETH1_VOTING_PERIOD:    64,
		SLOTS_PER_HISTORICAL_ROOT:        8192,
		MIN_EPOCHS_TO_INACTIVITY_PENALTY: 4,
		EPOCHS_PER_HISTORICAL_VECTOR:     1 << 16,
		EPOCHS_PER_SLASHINGS_VECTOR:      1 << 13,
		HISTORICAL_ROOTS_LIMIT:           1 << 24,
		VALIDATOR_REGISTRY_LIMIT:         1 << 40,
		BASE_REWARD_FACTOR:               64,
		PROPORTIONAL_SLASHING_MULTIPLIER: 1,
		WHISTLEBLOWER_REWARD_QUOTIENT:    512,
		PROPOSER_REWARD_QUOTIENT:         8,
		INACTIVITY_PENALTY_QUOTIENT:      1 << 26,
		MIN_SLASHING_PENALTY_QUOTIENT:    128,
		MAX_PROPOSER_SLASHINGS:           16,
		MAX_ATTESTER_SLASHINGS:           2,
		MAX_ATTESTATIONS:                 128,
		MAX_DEPOSITS:                     16,
		MAX_VOLUNTARY_EXITS:              16,
	},
	AltairPreset: common.AltairPreset{
		INACTIVITY_PENALTY_QUOTIENT_ALTAIR:      3 * (1 << 24),
		MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR:    64,
		PROPORTIONAL_SLASHING_MULTIPLIER_ALTAIR: 2,
		SYNC_COMMITTEE_SIZE:                     512,
		EPOCHS_PER_SYNC_COMMITTEE_PERIOD:        256,
		MIN_SYNC_COMMITTEE_PARTICIPANTS:         1,
	},
	MergePreset: common.MergePreset{},
	ShardingPreset: common.ShardingPreset{
		MAX_SHARDS:                      1024,
		INITIAL_ACTIVE_SHARDS:           64,
		GASPRICE_ADJUSTMENT_COEFFICIENT: 8,
		MAX_SHARD_PROPOSER_SLASHINGS:    16,
		MAX_SHARD_HEADERS_PER_SHARD:     4,
		SHARD_STATE_MEMORY_SLOTS:        256,
		MAX_SAMPLES_PER_BLOCK:           2048,
		TARGET_SAMPLES_PER_BLOCK:        1024,
		MAX_GASPRICE:                    1 << 33,
		MIN_GASPRICE:                    8,
	},
	Config: common.Config{
		PRESET_BASE:                         "mainnet",
		MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:  1 << 14,
		MIN_GENESIS_TIME:                    1606824000,
		GENESIS_FORK_VERSION:                common.Version{0x00, 0x00, 0x00, 0x00},
		GENESIS_DELAY:                       604800,
		ALTAIR_FORK_VERSION:                 common.Version{0x01, 0x00, 0x00, 0x00},
		ALTAIR_FORK_EPOCH:                   ^common.Epoch(0),
		MERGE_FORK_VERSION:                  common.Version{0x02, 0x00, 0x00, 0x00},
		MERGE_FORK_EPOCH:                    ^common.Epoch(0),
		SHARDING_FORK_VERSION:               common.Version{0x03, 0x00, 0x00, 0x00},
		SHARDING_FORK_EPOCH:                 ^common.Epoch(0),
		MIN_ANCHOR_POW_BLOCK_DIFFICULTY:     1 << 32,
		SECONDS_PER_SLOT:                    12,
		SECONDS_PER_ETH1_BLOCK:              14,
		MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256,
		SHARD_COMMITTEE_PERIOD:              256,
		ETH1_FOLLOW_DISTANCE:                2048,
		INACTIVITY_SCORE_BIAS:               4,
		INACTIVITY_SCORE_RECOVERY_RATE:      16,
		EJECTION_BALANCE:                    16_000_000_000,
		MIN_PER_EPOCH_CHURN_LIMIT:           4,
		CHURN_LIMIT_QUOTIENT:                1 << 16,
		DEPOSIT_CHAIN_ID:                    1,
		DEPOSIT_NETWORK_ID:                  1,
		DEPOSIT_CONTRACT_ADDRESS:            [20]byte{0x00, 0x00, 0x00, 0x00, 0x21, 0x9a, 0xb5, 0x40, 0x35, 0x6c, 0xBB, 0x83, 0x9C, 0xbe, 0x05, 0x30, 0x3d, 0x77, 0x05, 0xFa},
	},
	ExecutionEngine: nil,
}
View Source
var Minimal = &common.Spec{
	Phase0Preset: common.Phase0Preset{
		MAX_COMMITTEES_PER_SLOT:          4,
		TARGET_COMMITTEE_SIZE:            4,
		MAX_VALIDATORS_PER_COMMITTEE:     2048,
		SHUFFLE_ROUND_COUNT:              10,
		HYSTERESIS_QUOTIENT:              4,
		HYSTERESIS_DOWNWARD_MULTIPLIER:   1,
		HYSTERESIS_UPWARD_MULTIPLIER:     5,
		SAFE_SLOTS_TO_UPDATE_JUSTIFIED:   2,
		MIN_DEPOSIT_AMOUNT:               1_000_000_000,
		MAX_EFFECTIVE_BALANCE:            32_000_000_000,
		EFFECTIVE_BALANCE_INCREMENT:      1_000_000_000,
		MIN_ATTESTATION_INCLUSION_DELAY:  1,
		SLOTS_PER_EPOCH:                  8,
		MIN_SEED_LOOKAHEAD:               1,
		MAX_SEED_LOOKAHEAD:               4,
		EPOCHS_PER_ETH1_VOTING_PERIOD:    4,
		SLOTS_PER_HISTORICAL_ROOT:        64,
		MIN_EPOCHS_TO_INACTIVITY_PENALTY: 4,
		EPOCHS_PER_HISTORICAL_VECTOR:     64,
		EPOCHS_PER_SLASHINGS_VECTOR:      64,
		HISTORICAL_ROOTS_LIMIT:           1 << 24,
		VALIDATOR_REGISTRY_LIMIT:         1 << 40,
		BASE_REWARD_FACTOR:               64,
		WHISTLEBLOWER_REWARD_QUOTIENT:    512,
		PROPOSER_REWARD_QUOTIENT:         8,
		INACTIVITY_PENALTY_QUOTIENT:      1 << 25,
		MIN_SLASHING_PENALTY_QUOTIENT:    64,
		PROPORTIONAL_SLASHING_MULTIPLIER: 2,
		MAX_PROPOSER_SLASHINGS:           16,
		MAX_ATTESTER_SLASHINGS:           2,
		MAX_ATTESTATIONS:                 128,
		MAX_DEPOSITS:                     16,
		MAX_VOLUNTARY_EXITS:              16,
	},
	AltairPreset: common.AltairPreset{
		INACTIVITY_PENALTY_QUOTIENT_ALTAIR:      3 * (1 << 24),
		MIN_SLASHING_PENALTY_QUOTIENT_ALTAIR:    64,
		PROPORTIONAL_SLASHING_MULTIPLIER_ALTAIR: 2,
		SYNC_COMMITTEE_SIZE:                     32,
		EPOCHS_PER_SYNC_COMMITTEE_PERIOD:        8,
		MIN_SYNC_COMMITTEE_PARTICIPANTS:         1,
	},
	MergePreset: common.MergePreset{},
	ShardingPreset: common.ShardingPreset{
		MAX_SHARDS:                      8,
		INITIAL_ACTIVE_SHARDS:           2,
		GASPRICE_ADJUSTMENT_COEFFICIENT: 8,
		MAX_SHARD_PROPOSER_SLASHINGS:    4,
		MAX_SHARD_HEADERS_PER_SHARD:     4,
		SHARD_STATE_MEMORY_SLOTS:        256,
		MAX_SAMPLES_PER_BLOCK:           2048,
		TARGET_SAMPLES_PER_BLOCK:        1024,
		MAX_GASPRICE:                    1 << 33,
		MIN_GASPRICE:                    8,
	},
	Config: common.Config{
		PRESET_BASE:                         "minimal",
		MIN_GENESIS_ACTIVE_VALIDATOR_COUNT:  64,
		MIN_GENESIS_TIME:                    1578009600,
		GENESIS_FORK_VERSION:                common.Version{0x00, 0x00, 0x00, 0x01},
		GENESIS_DELAY:                       300,
		ALTAIR_FORK_VERSION:                 common.Version{0x01, 0x00, 0x00, 0x01},
		ALTAIR_FORK_EPOCH:                   ^common.Epoch(0),
		MERGE_FORK_VERSION:                  common.Version{0x02, 0x00, 0x00, 0x01},
		MERGE_FORK_EPOCH:                    ^common.Epoch(0),
		SHARDING_FORK_VERSION:               common.Version{0x03, 0x00, 0x00, 0x01},
		SHARDING_FORK_EPOCH:                 ^common.Epoch(0),
		MIN_ANCHOR_POW_BLOCK_DIFFICULTY:     1 << 32,
		SECONDS_PER_SLOT:                    6,
		SECONDS_PER_ETH1_BLOCK:              14,
		MIN_VALIDATOR_WITHDRAWABILITY_DELAY: 256,
		SHARD_COMMITTEE_PERIOD:              64,
		ETH1_FOLLOW_DISTANCE:                16,
		INACTIVITY_SCORE_BIAS:               4,
		INACTIVITY_SCORE_RECOVERY_RATE:      16,
		EJECTION_BALANCE:                    16_000_000_000,
		MIN_PER_EPOCH_CHURN_LIMIT:           4,
		CHURN_LIMIT_QUOTIENT:                1 << 16,
		DEPOSIT_CHAIN_ID:                    5,
		DEPOSIT_NETWORK_ID:                  5,
		DEPOSIT_CONTRACT_ADDRESS:            [20]byte{0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90},
	},
	ExecutionEngine: nil,
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL