Send nil when rescan is finished.
I previously fixed the duplicate send (before seeing GH issue #54), but forgot that btcwallet expects a nil reply when rescan has finished. This adds the final reply back, but replies with nil. Fixes #54.
This commit is contained in:
parent
41ecc9f835
commit
aea23ddff3
1 changed files with 4 additions and 0 deletions
|
@ -1298,6 +1298,10 @@ func handleRescan(s *rpcServer, cmd btcjson.Cmd,
|
|||
}
|
||||
}
|
||||
|
||||
reply.Result = nil
|
||||
mreply, _ := json.Marshal(reply)
|
||||
walletNotification <- mreply
|
||||
|
||||
rpcsLog.Debug("Finished rescan")
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue