From 8c8cc778dadf1e59809b3f4311f23322c3fac124 Mon Sep 17 00:00:00 2001 From: zjuncal Date: Thu, 12 Nov 2026 22:12:41 +0800 Subject: [PATCH] docs: correct stale comments in state, flashbots, and rewards Signed-off-by: zjuncal --- shared/services/flashbots/bundle.go | 2 +- shared/services/rewards/ssz_types/rewards-file-v5.go | 2 +- shared/services/state/critical-duties-slots.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/services/flashbots/bundle.go b/shared/services/flashbots/bundle.go index 65ac8d85f..1f73c6cf2 100644 --- a/shared/services/flashbots/bundle.go +++ b/shared/services/flashbots/bundle.go @@ -79,7 +79,7 @@ func (b *Bundle) AddTransactions(txs []*types.Transaction) { b.transactions = append(b.transactions, txs...) } -// SetBlockNumber sets the block number for which this bundle is valid +// SetTargetBlockNumber sets the block number for which this bundle is valid // If set to 0, the bundle is valid for the next block func (b *Bundle) SetTargetBlockNumber(blocknumber uint64) error { if b.targetBlocknumber != 0 { diff --git a/shared/services/rewards/ssz_types/rewards-file-v5.go b/shared/services/rewards/ssz_types/rewards-file-v5.go index b00367858..1465d9659 100644 --- a/shared/services/rewards/ssz_types/rewards-file-v5.go +++ b/shared/services/rewards/ssz_types/rewards-file-v5.go @@ -333,7 +333,7 @@ func NewNodeReward_v2(network Layer, address Address) *NodeReward_v2 { } } -// NodeRewards should implement sort.Interface to make it easier to sort. +// NodeRewards_v2 should implement sort.Interface to make it easier to sort. func (n NodeRewards_v2) Len() int { return len(n) } diff --git a/shared/services/state/critical-duties-slots.go b/shared/services/state/critical-duties-slots.go index 4696e85ec..dc774e12c 100644 --- a/shared/services/state/critical-duties-slots.go +++ b/shared/services/state/critical-duties-slots.go @@ -14,7 +14,7 @@ type CriticalDutiesSlots struct { CriticalDuties map[string][]uint64 } -// Gets the critical duties slots for a given state as if it were the final state in a epochs epoch interval +// Gets the critical duties epochs for a given state as if it were the final state in the given epoch interval func NewCriticalDutiesEpochs(epochs uint64, state *NetworkStateIndex) *CriticalDutiesEpochs { criticalDuties := &CriticalDutiesEpochs{ CriticalDuties: make(map[uint64][]string),