Skip to content

Commit 80e4317

Browse files
Copilotjulienrbrt
andcommitted
Address code review feedback
Co-authored-by: julienrbrt <29894366+julienrbrt@users.noreply.github.com>
1 parent 997c149 commit 80e4317

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

block/internal/pruner/pruner.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ func (p *Pruner) pruneOnce(ctx context.Context) error {
126126

127127
target := height - p.retention
128128
if target < p.lastPruned {
129-
p.lastPruned = 0
130129
return nil
131130
}
132131
if target == p.lastPruned {

execution/evm/execution.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ func NewEngineExecutionClient(
267267
}
268268

269269
// PruneExecMeta removes execution metadata at the given height.
270+
// It is used by the block pruner to delete historical exec meta entries.
270271
func (c *EngineClient) PruneExecMeta(ctx context.Context, height uint64) error {
271272
if c.store == nil {
272273
return nil

0 commit comments

Comments
 (0)