From 183adf6e612692a6426616a2a8566d6c9c0818a2 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Fri, 24 Aug 2018 15:37:04 +0200 Subject: [PATCH] chainntnfs/neutrino: provide n.quit as neutrino QuitChan option This will make sure a long-running rescan can be canceled in the case the notifier is shutting down. --- chainntnfs/neutrinonotify/neutrino.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chainntnfs/neutrinonotify/neutrino.go b/chainntnfs/neutrinonotify/neutrino.go index 76a6b71e..e23c49d0 100644 --- a/chainntnfs/neutrinonotify/neutrino.go +++ b/chainntnfs/neutrinonotify/neutrino.go @@ -764,6 +764,7 @@ func (n *NeutrinoNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint, neutrino.EndBlock(&waddrmgr.BlockStamp{ Height: int32(historicalDispatch.EndHeight), }), + neutrino.QuitChan(n.quit), ) if err != nil && !strings.Contains(err.Error(), "not found") { return nil, err