Skip to content

Commit f40b4f1

Browse files
Beacon API: Broadcasting BLS to execution changes should not use the request context in a go routine (prysmaticlabs#15019)
* Broadcasting BLS to execution changes should not use the request context in a go routine * Changelog fragment
1 parent 7fd4f74 commit f40b4f1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

+1-1
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

+3
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)