X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fbitcoinrpc.cpp;h=bb8ea6d1422a97cd2b1d35212ac1eb82dd53a076;hb=HEAD;hp=dafacef00cedfc6f67a488bc99da3d93667b463b;hpb=e23488a379ace5a9a2a63ecf6b1c3ccfb6af833b;p=novacoin.git diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index dafacef..bb8ea6d 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -8,6 +8,7 @@ #include "bitcoinrpc.h" #include "db.h" #include "interface.h" +#include "random.h" #include "sync.h" #include "util.h" #include "wallet.h" @@ -205,14 +206,12 @@ Value help(const Array& params, bool fHelp) Value stop(const Array& params, bool fHelp) { +// Accept the deprecated and ignored 'detach´ boolean argument if (fHelp || params.size() > 1) throw std::runtime_error( - "stop \n" - " is true or false to detach the database or not for this stop only\n" - "Stop NovaCoin server (and possibly override the detachdb config value)."); + "stop\n" + "Stop Novacoin server."); // Shutdown will take long enough that the response should get back - if (!params.empty()) - bitdb.SetDetach(params[0].get_bool()); StartShutdown(); return "NovaCoin server stopping"; } @@ -473,7 +472,7 @@ void StartRPCServer() if (mapArgs["-rpcpassword"].empty()) { unsigned char rand_pwd[32]; - RAND_bytes(rand_pwd, 32); + GetRandBytes(rand_pwd, 32); std::string strWhatAmI = "To use novacoind"; if (mapArgs.count("-server")) strWhatAmI = strprintf(_("To use the %s option"), "\"-server\"");