X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Frpcmining.cpp;h=c00c356b88374dfce6f5af4c3d8081e9aff21dba;hb=HEAD;hp=ca569688bd32c68060c4ed5f82d6b5fb7a1d3dd5;hpb=5098ea454db9132aa0f576921ca9d1a69429d146;p=novacoin.git diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index ca56968..c00c356 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -3,16 +3,13 @@ // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "main.h" #include "db.h" #include "txdb-leveldb.h" #include "init.h" #include "miner.h" #include "kernel.h" #include "bitcoinrpc.h" - -#include -#include +#include "wallet.h" using namespace json_spirit; using namespace std; @@ -83,7 +80,7 @@ Value scaninput(const Array& params, bool fHelp) " days - time window, 90 days by default.\n" ); - RPCTypeCheck(params, boost::assign::list_of(obj_type)); + RPCTypeCheck(params, { obj_type }); Object scanParams = params[0].get_obj(); @@ -139,7 +136,7 @@ Value scaninput(const Array& params, bool fHelp) if (nOut < 0 || nOut > (int)tx.vout.size() - 1) { stringstream strErrorMsg; - strErrorMsg << boost::format("Invalid parameter, input number %d is out of range") % nOut; + strErrorMsg << "Invalid parameter, input number " << to_string(nOut) << " is out of range"; throw JSONRPCError(RPC_INVALID_PARAMETER, strErrorMsg.str()); } @@ -152,7 +149,7 @@ Value scaninput(const Array& params, bool fHelp) if (nOut < 0 || nOut > (int)tx.vout.size() - 1) { stringstream strErrorMsg; - strErrorMsg << boost::format("Invalid parameter, input number %d is out of range") % nOut; + strErrorMsg << "Invalid parameter, input number " << to_string(nOut) << " is out of range"; throw JSONRPCError(RPC_INVALID_PARAMETER, strErrorMsg.str()); }