mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
params: happy lint, happy life
This commit is contained in:
parent
3712b19147
commit
9c55c647a0
1 changed files with 0 additions and 4 deletions
|
|
@ -1385,10 +1385,6 @@ type Rules struct {
|
||||||
|
|
||||||
// Rules ensures c's ChainID is not nil.
|
// Rules ensures c's ChainID is not nil.
|
||||||
func (c *ChainConfig) Rules(num *big.Int, isMerge bool, timestamp uint64) Rules {
|
func (c *ChainConfig) Rules(num *big.Int, isMerge bool, timestamp uint64) Rules {
|
||||||
chainID := c.ChainID
|
|
||||||
if chainID == nil {
|
|
||||||
chainID = new(big.Int)
|
|
||||||
}
|
|
||||||
// disallow setting Merge out of order
|
// disallow setting Merge out of order
|
||||||
isMerge = isMerge && c.IsLondon(num)
|
isMerge = isMerge && c.IsLondon(num)
|
||||||
isVerkle := isMerge && c.IsVerkle(num, timestamp)
|
isVerkle := isMerge && c.IsVerkle(num, timestamp)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue