Merge pull request #1953 from cfromknecht/remove-neutrino-shadowed-height

chainntnfs/neutrinonotify/neutrino: remove height shadowing
This commit is contained in:
Olaoluwa Osuntokun
2018-09-21 15:48:35 -07:00
committed by GitHub

View File

@@ -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 {