You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: block/internal/executing/executor.go
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -391,9 +391,7 @@ func (e *Executor) produceBlock() error {
391
391
returnfmt.Errorf("failed to validate block: %w", err)
392
392
}
393
393
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)
397
395
iferr!=nil {
398
396
returnfmt.Errorf("failed to create batch: %w", err)
0 commit comments