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

chainntnfs/neutrinonotify/neutrino: remove height shadowing
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2018-09-21 15:48:35 -07:00
commit 8cb93014eb
1 file changed
+1 -1
+1 -1
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 {