From 8a74643e4513535a518a78a5cb3fcf60e6da4e88 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 14 Mar 2024 23:23:41 +0100 Subject: [PATCH] beacon/blsync: fix crash in Stop --- beacon/blsync/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon/blsync/client.go b/beacon/blsync/client.go index 251adea951..39a1c6ea76 100644 --- a/beacon/blsync/client.go +++ b/beacon/blsync/client.go @@ -96,7 +96,7 @@ func (c *Client) SetEngineRPC(engine *rpc.Client) { func (c *Client) Start() error { headCh := make(chan types.ChainHeadEvent, 16) - c.blockSync.SubscribeChainHead(headCh) + c.chainHeadSub = c.blockSync.SubscribeChainHead(headCh) c.engineClient = startEngineClient(c.chainConfig, c.engineRPC, headCh) c.scheduler.Start()