mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 03:51:29 +00:00
cf0bd633f0
* fork/version detection and unmarshaling support * Update config/params/config.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Update proto/detect/configfork.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * PR feedback * move ssz initialization into the detect package * clarify comment * VersionForEpoch is much simpler/clearer in reverse * simpler VersionForEpoch; build AllConfigs in init * use fieldparams for Version * Update proto/detect/configfork_test.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * remove custom ForkName type, use runtime/version * pr cleanup * random fix from bad gh ui suggestion; privatize * privatize fieldSpec methods; + unit tests * Update proto/detect/configfork.go Co-authored-by: Potuz <potuz@prysmaticlabs.com> * fix bad github ui suggestion * ensure unique versions for simpler config match * fmt & adding unit test for ByState() * table-driven unit test for ByState * TestUnmarshalState * OrderedSchedule -> network/forks per PR feedback * goimports * lint fixes * move proto/detect -> ssz/encoding/detect * use typeUndefined in String * backport config tests from e2e PR * fix config parity test; make debugging it easier * lint * fix fork schedule initialization * cleanup * fix build * fix big ole derp * anything for you, deep source * goimportsss * InitializeForkSchedule in LoadChainConfigFile * PR feedback Co-authored-by: kasey <kasey@users.noreply.github.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: Potuz <potuz@prysmaticlabs.com>
28 lines
2.5 KiB
Go
28 lines
2.5 KiB
Go
//go:build minimal
|
|
// +build minimal
|
|
|
|
package field_params
|
|
|
|
const (
|
|
Preset = "minimal"
|
|
BlockRootsLength = 64 // SLOTS_PER_HISTORICAL_ROOT
|
|
StateRootsLength = 64 // SLOTS_PER_HISTORICAL_ROOT
|
|
RandaoMixesLength = 64 // EPOCHS_PER_HISTORICAL_VECTOR
|
|
HistoricalRootsLength = 16777216 // HISTORICAL_ROOTS_LIMIT
|
|
ValidatorRegistryLimit = 1099511627776 // VALIDATOR_REGISTRY_LIMIT
|
|
Eth1DataVotesLength = 32 // SLOTS_PER_ETH1_VOTING_PERIOD
|
|
PreviousEpochAttestationsLength = 1024 // MAX_ATTESTATIONS * SLOTS_PER_EPOCH
|
|
CurrentEpochAttestationsLength = 1024 // MAX_ATTESTATIONS * SLOTS_PER_EPOCH
|
|
SlashingsLength = 64 // EPOCHS_PER_SLASHINGS_VECTOR
|
|
SyncCommitteeLength = 32 // SYNC_COMMITTEE_SIZE
|
|
RootLength = 32 // RootLength defines the byte length of a Merkle root.
|
|
BLSSignatureLength = 96 // BLSSignatureLength defines the byte length of a BLSSignature.
|
|
BLSPubkeyLength = 48 // BLSPubkeyLength defines the byte length of a BLSSignature.
|
|
MaxTxsPerPayloadLength = 1048576 // MaxTxsPerPayloadLength defines the maximum number of transactions that can be included in a payload.
|
|
MaxBytesPerTxLength = 1073741824 // MaxBytesPerTxLength defines the maximum number of bytes that can be included in a transaction.
|
|
FeeRecipientLength = 20 // FeeRecipientLength defines the byte length of a fee recipient.
|
|
LogsBloomLength = 256 // LogsBloomLength defines the byte length of a logs bloom.
|
|
VersionLength = 4 // VersionLength defines the byte length of a fork version number.
|
|
EthBurnAddressHex = "0x0000000000000000000000000000000000000000" // EthBurnAddressHex defines the hex encoded address of the eth1.0 burn contract.
|
|
)
|