From 3f345c855ebceb14cca98dc3776718185ba2014a Mon Sep 17 00:00:00 2001 From: David Muthy Date: Tue, 28 Jan 2025 22:56:04 +0800 Subject: [PATCH] chore: fix some function names in comment (#2865) --- core/blockchain_reader.go | 2 +- core/forkchoice.go | 2 +- tests/fuzzers/bls12381/bls12381_fuzz.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go index 09e641354c..eb0832509d 100644 --- a/core/blockchain_reader.go +++ b/core/blockchain_reader.go @@ -504,7 +504,7 @@ func (bc *BlockChain) SubscribeChainHeadEvent(ch chan<- ChainHeadEvent) event.Su return bc.scope.Track(bc.chainHeadFeed.Subscribe(ch)) } -// SubscribeHighestVerifiedBlockEvent registers a subscription of HighestVerifiedBlockEvent. +// SubscribeHighestVerifiedHeaderEvent registers a subscription of HighestVerifiedBlockEvent. func (bc *BlockChain) SubscribeHighestVerifiedHeaderEvent(ch chan<- HighestVerifiedBlockEvent) event.Subscription { return bc.scope.Track(bc.highestVerifiedBlockFeed.Subscribe(ch)) } diff --git a/core/forkchoice.go b/core/forkchoice.go index b4068ef544..e901f5c02c 100644 --- a/core/forkchoice.go +++ b/core/forkchoice.go @@ -75,7 +75,7 @@ func NewForkChoice(chainReader ChainReader, preserve func(header *types.Header) } } -// reorgNeeded returns whether the reorg should be applied +// ReorgNeeded returns whether the reorg should be applied // based on the given external header and local canonical chain. // In the td mode, the new head is chosen if the corresponding // total difficulty is higher. In the extern mode, the trusted diff --git a/tests/fuzzers/bls12381/bls12381_fuzz.go b/tests/fuzzers/bls12381/bls12381_fuzz.go index a3e0e9f72b..e5d96cd5b8 100644 --- a/tests/fuzzers/bls12381/bls12381_fuzz.go +++ b/tests/fuzzers/bls12381/bls12381_fuzz.go @@ -396,7 +396,7 @@ func multiExpG1Gnark(gs []gnark.G1Affine, scalars []fr.Element) gnark.G1Affine { return res } -// multiExpG1Gnark is a naive implementation of G1 multi-exponentiation +// multiExpG2Gnark is a naive implementation of G2 multi-exponentiation func multiExpG2Gnark(gs []gnark.G2Affine, scalars []fr.Element) gnark.G2Affine { res := gnark.G2Affine{} for i := 0; i < len(gs); i++ {