Skip to content

Commit bfeaa81

Browse files
core: fix some function names in comment (#3833)
Fixed some function names in comment. category: refactor ticket: none
1 parent ed32f74 commit bfeaa81

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

core/scheduler/scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ func (s *Scheduler) resolveAttDuties(ctx context.Context, slot core.Slot, vals v
408408
return nil
409409
}
410410

411-
// resolveProposerDuties resolves proposer duties for the given validators.
411+
// resolveProDuties resolves proposer duties for the given validators.
412412
func (s *Scheduler) resolveProDuties(ctx context.Context, slot core.Slot, vals validators) error {
413413
opts := &eth2api.ProposerDutiesOpts{
414414
Epoch: eth2p0.Epoch(slot.Epoch()),

core/signeddata.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ type SyncCommitteeSelection struct {
12071207
eth2exp.SyncCommitteeSelection
12081208
}
12091209

1210-
// MessageRoots returns the signing roots for the provided SyncCommitteeSelection.
1210+
// MessageRoot returns the signing roots for the provided SyncCommitteeSelection.
12111211
// Refer https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/validator.md#syncaggregatorselectiondata
12121212
func (s SyncCommitteeSelection) MessageRoot() ([32]byte, error) {
12131213
data := altair.SyncAggregatorSelectionData{
@@ -1784,7 +1784,7 @@ type SyncContributionAndProof struct {
17841784
altair.ContributionAndProof
17851785
}
17861786

1787-
// MessageRoots returns the signing roots for the provided SyncContributionAndProof.
1787+
// MessageRoot returns the signing roots for the provided SyncContributionAndProof.
17881788
// Refer: https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/validator.md#aggregation-selection.
17891789
func (s SyncContributionAndProof) MessageRoot() ([32]byte, error) {
17901790
data := altair.SyncAggregatorSelectionData{
@@ -1876,7 +1876,7 @@ type SignedSyncContributionAndProof struct {
18761876
altair.SignedContributionAndProof
18771877
}
18781878

1879-
// MessageRoots returns the signing roots for the provided SignedSyncContributionAndProof.
1879+
// MessageRoot returns the signing roots for the provided SignedSyncContributionAndProof.
18801880
// Refer get_contribution_and_proof_signature from https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/validator.md#broadcast-sync-committee-contribution.
18811881
func (s SignedSyncContributionAndProof) MessageRoot() ([32]byte, error) {
18821882
return s.Message.HashTreeRoot()

core/validatorapi/router_internal_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,7 @@ func testRawRouter(t *testing.T, handler testHandler, callback func(context.Cont
19241924
testRawRouterEx(t, handler, callback, true)
19251925
}
19261926

1927-
// testRawRouterEX is a helper function same as testRawRouter() but accepts GetBuilderAPIFlagFunc.
1927+
// testRawRouterEx is a helper function same as testRawRouter() but accepts GetBuilderAPIFlagFunc.
19281928
func testRawRouterEx(t *testing.T, handler testHandler, callback func(context.Context, string), builderEnabled bool) {
19291929
t.Helper()
19301930

0 commit comments

Comments
 (0)