mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
beacon/blsync: fix crash in Stop
This commit is contained in:
parent
5bc6d0b235
commit
8a74643e45
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue