X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Frpcwallet.cpp;h=260cc57a099089f3aec28bcb99f88ee4f3ef8780;hb=0dd25284c30dfdbfeff9a882dd801be8cacd0859;hp=67c24e349b7f681486efb8f6f1af00752e035a11;hpb=0c15e9be384df1db22a714c3ec77e9902df0492f;p=novacoin.git diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 67c24e3..260cc57 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -18,7 +18,7 @@ int64_t nWalletUnlockTime; static CCriticalSection cs_nWalletUnlockTime; extern int64_t nReserveBalance; -extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, json_spirit::Object& entry); +extern void TxToJSON(const CTransaction& tx, const uint256& hashBlock, json_spirit::Object& entry); std::string HelpRequiringPassphrase() { @@ -734,7 +734,7 @@ Value sendmany(const Array& params, bool fHelp) { if (fHelp || params.size() < 2 || params.size() > 4) throw runtime_error( - "sendmany {address:amount,...} [minconf=1] [comment]\n" + "sendmany '{address:amount,...}' [minconf=1] [comment]\n" "amounts are double-precision floating point numbers" + HelpRequiringPassphrase()); @@ -1429,7 +1429,7 @@ Value keypoolrefill(const Array& params, bool fHelp) "should be replaced with the newly generated one." + HelpRequiringPassphrase()); - unsigned int nSize = max(GetArg("-keypool", 100), 0); + unsigned int nSize = max(GetArgUInt("-keypool", 100), 0); if (params.size() > 0) { if (params[0].get_int() < 0) throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected valid size"); @@ -1456,7 +1456,7 @@ Value keypoolreset(const Array& params, bool fHelp) "should be replaced with the newly generated one." + HelpRequiringPassphrase()); - unsigned int nSize = max(GetArg("-keypool", 100), 0); + unsigned int nSize = max(GetArgUInt("-keypool", 100), 0); if (params.size() > 0) { if (params[0].get_int() < 0) throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected valid size");