From 6bc07e5c61bc526c916e059a704d5f443aed865f Mon Sep 17 00:00:00 2001 From: mountcount Date: Fri, 29 Nov 2024 19:03:29 +0800 Subject: [PATCH] chore: fix some problematic function names in comment Signed-off-by: mountcount --- beacon/light/request/scheduler.go | 2 +- consensus/misc/eip1559/eip1559.go | 2 +- consensus/misc/eip1559/eip1559_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon/light/request/scheduler.go b/beacon/light/request/scheduler.go index e80daf805e..242ed56d28 100644 --- a/beacon/light/request/scheduler.go +++ b/beacon/light/request/scheduler.go @@ -269,7 +269,7 @@ func (s *Scheduler) addEvent(event Event) { s.Trigger() } -// filterEvent sorts each Event either as a request event or a server event, +// filterEvents sorts each Event either as a request event or a server event, // depending on its type. Request events are also sorted in a map based on the // module that originally initiated the request. It also ensures that no events // related to a server are returned before EvRegistered or after EvUnregistered. diff --git a/consensus/misc/eip1559/eip1559.go b/consensus/misc/eip1559/eip1559.go index a970bdcd31..98456a1653 100644 --- a/consensus/misc/eip1559/eip1559.go +++ b/consensus/misc/eip1559/eip1559.go @@ -57,7 +57,7 @@ func VerifyEIP1559Header(config *params.ChainConfig, parent, header *types.Heade return nil } -// DecodeHolocene1599Params extracts the Holcene 1599 parameters from the encoded form defined here: +// DecodeHolocene1559Params extracts the Holcene 1599 parameters from the encoded form defined here: // https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/holocene/exec-engine.md#eip-1559-parameters-in-payloadattributesv3 // // Returns 0,0 if the format is invalid, though ValidateHolocene1559Params should be used instead of this function for diff --git a/consensus/misc/eip1559/eip1559_test.go b/consensus/misc/eip1559/eip1559_test.go index c69dc80f93..c48b540b74 100644 --- a/consensus/misc/eip1559/eip1559_test.go +++ b/consensus/misc/eip1559/eip1559_test.go @@ -187,7 +187,7 @@ func TestCalcBaseFeeOptimism(t *testing.T) { } } -// TestCalcBaseFeeHolocene assumes all blocks are Optimism blocks post-Holocene upgrade +// TestCalcBaseFeeOptimismHolocene assumes all blocks are Optimism blocks post-Holocene upgrade func TestCalcBaseFeeOptimismHolocene(t *testing.T) { parentBaseFee := int64(10_000_000) parentGasLimit := uint64(30_000_000)