Skip to content

Commit

Permalink
chore: fix some function names in comment (#2865)
Browse files Browse the repository at this point in the history
  • Loading branch information
damuzhi0810 authored Jan 28, 2025
1 parent d41d601 commit 3f345c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/blockchain_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
2 changes: 1 addition & 1 deletion core/forkchoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/fuzzers/bls12381/bls12381_fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -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++ {
Expand Down

0 comments on commit 3f345c8

Please sign in to comment.