diff --git a/server/rpc/rpcserver.go b/server/rpc/rpcserver.go index 7c49381ca..a752215c2 100644 --- a/server/rpc/rpcserver.go +++ b/server/rpc/rpcserver.go @@ -4242,11 +4242,7 @@ func NewRPCServer( func (s *Server) handleBlockchainNotification(notification *blockdag.Notification) { switch notification.Type { case blockdag.NTBlockAccepted: - tipHashes, ok := notification.Data.([]daghash.Hash) - if !ok { - log.Warnf("Chain accepted notification is not a block.") - break - } + tipHashes := s.cfg.DAG.TipHashes() // Allow any clients performing long polling via the // getblocktemplate RPC to be notified when the new block causes