Merge pull request #1953 from cfromknecht/remove-neutrino-shadowed-height
chainntnfs/neutrinonotify/neutrino: remove height shadowing
This commit is contained in:
commit
8cb93014eb
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user