From dbceb1a9466384cedbe0e13714385982a5f19692 Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Mon, 1 Dec 2025 19:23:40 +0100 Subject: [PATCH] params: reduce allocations in Rules --- params/config.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/params/config.go b/params/config.go index c5dfad1cd3..609e86f9fd 100644 --- a/params/config.go +++ b/params/config.go @@ -1375,7 +1375,6 @@ func (err *ConfigCompatError) Error() string { // Rules is a one time interface meaning that it shouldn't be used in between transition // phases. type Rules struct { - ChainID *big.Int IsHomestead, IsEIP150, IsEIP155, IsEIP158 bool IsEIP2929, IsEIP4762 bool IsByzantium, IsConstantinople, IsPetersburg, IsIstanbul bool @@ -1394,7 +1393,6 @@ func (c *ChainConfig) Rules(num *big.Int, isMerge bool, timestamp uint64) Rules isMerge = isMerge && c.IsLondon(num) isVerkle := isMerge && c.IsVerkle(num, timestamp) return Rules{ - ChainID: new(big.Int).Set(chainID), IsHomestead: c.IsHomestead(num), IsEIP150: c.IsEIP150(num), IsEIP155: c.IsEIP155(num),