chain: update neutrino API usage
This commit is contained in:
parent
43244ccc61
commit
64b5b448f5
1 changed files with 2 additions and 2 deletions
|
@ -385,7 +385,7 @@ func (s *NeutrinoClient) Rescan(startHash *chainhash.Hash, addrs []btcutil.Addre
|
||||||
neutrino.WatchAddrs(addrs...),
|
neutrino.WatchAddrs(addrs...),
|
||||||
neutrino.WatchOutPoints(watchOutPoints...),
|
neutrino.WatchOutPoints(watchOutPoints...),
|
||||||
)
|
)
|
||||||
s.rescan = &newRescan
|
s.rescan = newRescan
|
||||||
s.rescanErr = s.rescan.Start()
|
s.rescanErr = s.rescan.Start()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -433,7 +433,7 @@ func (s *NeutrinoClient) NotifyReceived(addrs []btcutil.Address) error {
|
||||||
neutrino.QuitChan(s.rescanQuit),
|
neutrino.QuitChan(s.rescanQuit),
|
||||||
neutrino.WatchAddrs(addrs...),
|
neutrino.WatchAddrs(addrs...),
|
||||||
)
|
)
|
||||||
s.rescan = &newRescan
|
s.rescan = newRescan
|
||||||
s.rescanErr = s.rescan.Start()
|
s.rescanErr = s.rescan.Start()
|
||||||
s.clientMtx.Unlock()
|
s.clientMtx.Unlock()
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue