diff --git a/server/rpc/rpcserver.go b/server/rpc/rpcserver.go index 5ba5e59ae..c2dd210a2 100644 --- a/server/rpc/rpcserver.go +++ b/server/rpc/rpcserver.go @@ -952,6 +952,12 @@ func (s *Server) handleBlockDAGNotification(notification *blockdag.Notification) break } + // If the acceptance index is off we aren't capable of serving + // ChainChanged notifications. + if s.cfg.AcceptanceIndex == nil { + break + } + // Notify registered websocket clients of chain changes. s.ntfnMgr.NotifyChainChanged(data.RemovedChainBlockHashes, data.AddedChainBlockHashes)