mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[NOD-341] Made ChainChanged not fire if the acceptance index is off. (#419)
This commit is contained in:
parent
c5108a4abd
commit
683830d574
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user