diff --git a/chainntnfs/neutrinonotify/neutrino.go b/chainntnfs/neutrinonotify/neutrino.go index a0e999d08..75135bb0c 100644 --- a/chainntnfs/neutrinonotify/neutrino.go +++ b/chainntnfs/neutrinonotify/neutrino.go @@ -814,7 +814,7 @@ func (n *NeutrinoNotifier) RegisterSpendNtfn(outpoint *wire.OutPoint, // may miss a notification dispatch. for { n.heightMtx.RLock() - currentHeight := n.bestHeight + currentHeight = n.bestHeight n.heightMtx.RUnlock() if currentHeight < heightHint {