mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[DEV-220] Fix NTBlockAccepted bug (#95)
This commit is contained in:
parent
65788d4dc0
commit
0bb2030200
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user