Skip to content

Commit 1cd542a

Browse files
committed
refactor(store): remove redundant comment about key types in block cleanup
1 parent e006ce4 commit 1cd542a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/beacon/ssz/encoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type Encoder struct {
3939

4040
// NewEncoder creates a new SSZ encoder.
4141
// If memoryBudget is > 0, limits concurrent SSZ encoding to that many bytes.
42-
// If memoryBudget is <= 0, no limit is applied (original behavior).
42+
// If memoryBudget is <= 0, no limit is applied.
4343
func NewEncoder(customPreset bool, memoryBudget int64) *Encoder {
4444
var sem *semaphore.Weighted
4545
if memoryBudget > 0 {

pkg/beacon/store/block.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ func (c *Block) cleanupBlock(block *spec.VersionedSignedBeaconBlock) error {
8989
return err
9090
}
9191

92-
// Keys must match the types used in Add(): slot (phase0.Slot) and stateRoot (phase0.Root)
9392
c.slotToBlockRoot.Delete(slot)
9493
c.stateRootToBlockRoot.Delete(stateRoot)
9594

0 commit comments

Comments
 (0)