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:
Josh Rickmar 2013-12-02 10:24:22 -05:00
parent 41ecc9f835
commit aea23ddff3

View file

@ -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
}