Documentation
¶
Index ¶
- type BorConfig
- func (c *BorConfig) CalculateBackupMultiplier(number uint64) uint64
- func (c *BorConfig) CalculatePeriod(number uint64) uint64
- func (c *BorConfig) CalculateProducerDelay(number uint64) uint64
- func (c *BorConfig) CalculateSprintLength(number uint64) uint64
- func (c *BorConfig) CalculateSprintNumber(number uint64) uint64
- func (c *BorConfig) CalculateStateSyncDelay(number uint64) uint64
- func (c *BorConfig) GetAgraBlock() *big.Int
- func (c *BorConfig) GetAhmedabadBlock() *big.Int
- func (c *BorConfig) GetNapoliBlock() *big.Int
- func (c *BorConfig) IsAgra(num uint64) bool
- func (c *BorConfig) IsAhmedabad(number uint64) bool
- func (c *BorConfig) IsDelhi(number uint64) bool
- func (c *BorConfig) IsIndore(number uint64) bool
- func (c *BorConfig) IsJaipur(number uint64) bool
- func (c *BorConfig) IsNapoli(num uint64) bool
- func (c *BorConfig) IsSprintEnd(number uint64) bool
- func (c *BorConfig) IsSprintStart(number uint64) bool
- func (c *BorConfig) StateReceiverContractAddress() common.Address
- func (c *BorConfig) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BorConfig ¶
type BorConfig struct { Period map[string]uint64 `json:"period"` // Number of seconds between blocks to enforce ProducerDelay map[string]uint64 `json:"producerDelay"` // Number of seconds delay between two producer interval Sprint map[string]uint64 `json:"sprint"` // Epoch length to proposer BackupMultiplier map[string]uint64 `json:"backupMultiplier"` // Backup multiplier to determine the wiggle time ValidatorContract string `json:"validatorContract"` // Validator set contract StateReceiverContract string `json:"stateReceiverContract"` // State receiver contract OverrideStateSyncRecords map[string]int `json:"overrideStateSyncRecords"` // override state records count BlockAlloc map[string]interface{} `json:"blockAlloc"` JaipurBlock *big.Int `json:"jaipurBlock"` // Jaipur switch block (nil = no fork, 0 = already on Jaipur) DelhiBlock *big.Int `json:"delhiBlock"` // Delhi switch block (nil = no fork, 0 = already on Delhi) IndoreBlock *big.Int `json:"indoreBlock"` // Indore switch block (nil = no fork, 0 = already on Indore) AgraBlock *big.Int `json:"agraBlock"` // Agra switch block (nil = no fork, 0 = already on Agra) NapoliBlock *big.Int `json:"napoliBlock"` // Napoli switch block (nil = no fork, 0 = already on Napoli) AhmedabadBlock *big.Int `json:"ahmedabadBlock"` // Ahmedabad switch block (nil = no fork, 0 = already on Ahmedabad) StateSyncConfirmationDelay map[string]uint64 `json:"stateSyncConfirmationDelay"` // StateSync Confirmation Delay, in seconds, to calculate `to` // contains filtered or unexported fields }
BorConfig is the consensus engine configs for Matic bor based sealing.
func (*BorConfig) CalculateBackupMultiplier ¶
func (*BorConfig) CalculatePeriod ¶
func (*BorConfig) CalculateProducerDelay ¶
func (*BorConfig) CalculateSprintLength ¶
func (*BorConfig) CalculateSprintNumber ¶
func (*BorConfig) CalculateStateSyncDelay ¶
func (*BorConfig) GetAgraBlock ¶
func (*BorConfig) GetAhmedabadBlock ¶
func (*BorConfig) GetNapoliBlock ¶
func (*BorConfig) IsAgra ¶
IsAgra returns whether num is either equal to the Agra fork block or greater. The Agra hard fork is based on the Shanghai hard fork, but it doesn't include withdrawals. Also Agra is activated based on the block number rather than the timestamp. Refer to https://forum.polygon.technology/t/pip-28-agra-hardfork
func (*BorConfig) IsAhmedabad ¶
func (*BorConfig) IsNapoli ¶
Refer to https://forum.polygon.technology/t/pip-33-napoli-upgrade
func (*BorConfig) IsSprintEnd ¶
func (*BorConfig) IsSprintStart ¶
func (*BorConfig) StateReceiverContractAddress ¶
Click to show internal directories.
Click to hide internal directories.