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
commit 8cb93014eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {