chain: also register blockConnected for NotigyReceived calls

This commit is contained in:
Olaoluwa Osuntokun 2017-06-05 12:22:09 -07:00
parent 772fbd4726
commit 7acc49dddb

View file

@ -228,6 +228,7 @@ func (s *NeutrinoClient) NotifyReceived(addrs []btcutil.Address) error {
// Rescan with just the specified addresses.
s.rescan = s.CS.NewRescan(
neutrino.NotificationHandlers(btcrpcclient.NotificationHandlers{
OnBlockConnected: s.onBlockConnected,
OnFilteredBlockConnected: s.onFilteredBlockConnected,
OnBlockDisconnected: s.onBlockDisconnected,
}),