From aea23ddff30c5a8a4fa4d25368488067e852b531 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Mon, 2 Dec 2013 10:24:22 -0500 Subject: [PATCH] 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. --- rpcserver.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpcserver.go b/rpcserver.go index 5df7b8c8..3587eec3 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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 }