MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / RPCTypeCheck

Function RPCTypeCheck

src/rpc/server.cpp:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void RPCTypeCheck(const UniValue& params,
53 const std::list<UniValueType>& typesExpected,
54 bool fAllowNull)
55{
56 unsigned int i = 0;
57 for (const UniValueType& t : typesExpected) {
58 if (params.size() <= i)
59 break;
60
61 const UniValue& v = params[i];
62 if (!(fAllowNull && v.isNull())) {
63 RPCTypeCheckArgument(v, t);
64 }
65 i++;
66 }
67}
68
69void RPCTypeCheckArgument(const UniValue& value, const UniValueType& typeExpected)
70{

Callers 15

fundrawtransactionFunction · 0.85
bumpfeeFunction · 0.85
walletprocesspsbtFunction · 0.85
walletcreatefundedpsbtFunction · 0.85
importmultiFunction · 0.85
getblocksubsidyFunction · 0.85
estimatesmartfeeFunction · 0.85
estimaterawfeeFunction · 0.85
createrawtransactionFunction · 0.85
decoderawtransactionFunction · 0.85
decodescriptFunction · 0.85

Calls 3

RPCTypeCheckArgumentFunction · 0.85
isNullMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected