Skip to content

Commit fe03e69

Browse files
committed
avoid taking block commitment lock when fetching softblock pointer
1 parent f468dfe commit fe03e69

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

grpc/execution/server.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,8 @@ func (s *ExecutionServiceServerV1) ExecuteOptimisticBlock(ctx context.Context, r
252252
executionStart := time.Now()
253253
defer executionOptimisticBlockTimer.UpdateSince(executionStart)
254254

255-
s.commitmentUpdateLock.Lock()
256255
// get the soft block
257256
softBlock := s.bc.CurrentSafeBlock()
258-
s.commitmentUpdateLock.Unlock()
259257

260258
s.blockExecutionLock.Lock()
261259
nextFeeRecipient := s.nextFeeRecipient

0 commit comments

Comments
 (0)