mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Use list initialization (C++11) for maps/vectors instead of boost::assign::map_list_of/list_of
This commit is contained in:
@@ -27,8 +27,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include <boost/assign/list_of.hpp>
|
||||
|
||||
#include <univalue.h>
|
||||
|
||||
CWallet *GetWalletForJSONRPCRequest(const JSONRPCRequest& request)
|
||||
@@ -2254,9 +2252,9 @@ UniValue lockunspent(const JSONRPCRequest& request)
|
||||
LOCK2(cs_main, pwallet->cs_wallet);
|
||||
|
||||
if (request.params.size() == 1)
|
||||
RPCTypeCheck(request.params, boost::assign::list_of(UniValue::VBOOL));
|
||||
RPCTypeCheck(request.params, {UniValue::VBOOL});
|
||||
else
|
||||
RPCTypeCheck(request.params, boost::assign::list_of(UniValue::VBOOL)(UniValue::VARR));
|
||||
RPCTypeCheck(request.params, {UniValue::VBOOL, UniValue::VARR});
|
||||
|
||||
bool fUnlock = request.params[0].get_bool();
|
||||
|
||||
@@ -2676,7 +2674,7 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
|
||||
+ HelpExampleCli("sendrawtransaction", "\"signedtransactionhex\"")
|
||||
);
|
||||
|
||||
RPCTypeCheck(request.params, boost::assign::list_of(UniValue::VSTR));
|
||||
RPCTypeCheck(request.params, {UniValue::VSTR});
|
||||
|
||||
CTxDestination changeAddress = CNoDestination();
|
||||
int changePosition = -1;
|
||||
@@ -2694,7 +2692,7 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
|
||||
includeWatching = request.params[1].get_bool();
|
||||
}
|
||||
else {
|
||||
RPCTypeCheck(request.params, boost::assign::list_of(UniValue::VSTR)(UniValue::VOBJ));
|
||||
RPCTypeCheck(request.params, {UniValue::VSTR, UniValue::VOBJ});
|
||||
|
||||
UniValue options = request.params[1];
|
||||
|
||||
@@ -2829,7 +2827,7 @@ UniValue bumpfee(const JSONRPCRequest& request)
|
||||
HelpExampleCli("bumpfee", "<txid>"));
|
||||
}
|
||||
|
||||
RPCTypeCheck(request.params, boost::assign::list_of(UniValue::VSTR)(UniValue::VOBJ));
|
||||
RPCTypeCheck(request.params, {UniValue::VSTR, UniValue::VOBJ});
|
||||
uint256 hash;
|
||||
hash.SetHex(request.params[0].get_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user