chore(params): fix some comments (#423)

This commit is contained in:
David 2025-04-28 14:25:08 +08:00 committed by GitHub
parent 19dca2f0b9
commit f4cb12a203
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -416,7 +416,7 @@ type ChainConfig struct {
// CHANGE(taiko): Taiko network flag. // CHANGE(taiko): Taiko network flag.
Taiko bool `json:"taiko"` Taiko bool `json:"taiko"`
OntakeBlock *big.Int `json:"ontakeBlock,omitempty"` // Ontake switch block (nil = no fork, 0 = already activated) OntakeBlock *big.Int `json:"ontakeBlock,omitempty"` // Ontake switch block (nil = no fork, 0 = already activated)
PacayaBlock *big.Int `json:"pacayaBlock,omitempty"` // Ontake switch block (nil = no fork, 0 = already activated) PacayaBlock *big.Int `json:"pacayaBlock,omitempty"` // Pacaya switch block (nil = no fork, 0 = already activated)
} }
// EthashConfig is the consensus engine configs for proof-of-work based sealing. // EthashConfig is the consensus engine configs for proof-of-work based sealing.
@ -644,7 +644,7 @@ func (c *ChainConfig) IsOntake(num *big.Int) bool {
return isBlockForked(c.OntakeBlock, num) return isBlockForked(c.OntakeBlock, num)
} }
// CHANGE(taiko): IsPacaya returns whether num is either equal to the pacaya fork block or greater. // CHANGE(taiko): IsPacaya returns whether num is either equal to the Pacaya fork block or greater.
func (c *ChainConfig) IsPacaya(num *big.Int) bool { func (c *ChainConfig) IsPacaya(num *big.Int) bool {
return isBlockForked(c.PacayaBlock, num) return isBlockForked(c.PacayaBlock, num)
} }