Skip to content

Commit 7feba0b

Browse files
prestonvanloonfernantho
authored andcommitted
Beacon API: Broadcasting BLS to execution changes should not use the request context in a go routine (OffchainLabs#15019)
* Broadcasting BLS to execution changes should not use the request context in a go routine * Changelog fragment
1 parent cbd5ff3 commit 7feba0b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

beacon-chain/rpc/eth/beacon/handlers_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ func (s *Server) SubmitBLSToExecutionChanges(w http.ResponseWriter, r *http.Requ
633633
toBroadcast = append(toBroadcast, sbls)
634634
}
635635
}
636-
go s.broadcastBLSChanges(ctx, toBroadcast)
636+
go s.broadcastBLSChanges(context.Background(), toBroadcast)
637637
if len(failures) > 0 {
638638
failuresErr := &server.IndexedVerificationFailureError{
639639
Code: http.StatusBadRequest,

changelog/pvl_bls-ctx.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Fixed
2+
3+
- Broadcasting BLS to execution changes should not use the request context in a go routine. Use context.Background() for the broadcasting go routine.

0 commit comments

Comments
 (0)