From e43bc1774da618451c3ed5a91b6b6ba586fdc556 Mon Sep 17 00:00:00 2001 From: Austin Roberts Date: Mon, 23 Oct 2023 12:36:16 -0500 Subject: [PATCH] Fix comments --- params/plugin_hooks.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/params/plugin_hooks.go b/params/plugin_hooks.go index 6d94e42af..b46881455 100644 --- a/params/plugin_hooks.go +++ b/params/plugin_hooks.go @@ -7,7 +7,7 @@ import ( "github.com/ethereum/go-ethereum/plugins" ) -// IsLondon returns whether num is either equal to the London fork block or greater. +// Is1559 returns whether num is either equal to the London fork block or greater, if the chain supports EIP1559 func (c *ChainConfig) Is1559(num *big.Int) bool { if plugins.DefaultPluginLoader == nil { log.Warn("Attempting is1559, but default PluginLoader has not been initialized") @@ -27,7 +27,8 @@ func PluginEIPCheck(pl *plugins.PluginLoader, eipHookName string, num *big.Int) } return fn(num), ok } -// IsLondon returns whether num is either equal to the London fork block or greater. +// IsEIP160 returns whether num is either equal to the EIP160 block or greater. +// This defaults to same as 158, but some chains do it at a different block func (c *ChainConfig) IsEIP160(num *big.Int) bool { if plugins.DefaultPluginLoader == nil { log.Warn("Attempting is160, but default PluginLoader has not been initialized")