Skip to content

Commit 32f39bc

Browse files
committed
remove todo
1 parent ab3889f commit 32f39bc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

block/internal/executing/executor.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,7 @@ func (e *Executor) produceBlock() error {
391391
return fmt.Errorf("failed to validate block: %w", err)
392392
}
393393

394-
// Save block, update height, and update state atomically using batch
395-
// context.TODO() should be reverted to the real context (e.ctx) once https://github.com/evstack/ev-node/issues/2274 has been implemented, this prevents context cancellation
396-
batch, err := e.store.NewBatch(context.TODO())
394+
batch, err := e.store.NewBatch(e.ctx)
397395
if err != nil {
398396
return fmt.Errorf("failed to create batch: %w", err)
399397
}

0 commit comments

Comments
 (0)