MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / BOOST_FOREACH

Function BOOST_FOREACH

src/rpcserver.cpp:74–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72{
73 unsigned int i = 0;
74 BOOST_FOREACH(UniValue::VType t, typesExpected)
75 {
76 if (params.size() <= i)
77 break;
78
79 const UniValue& v = params[i];
80 if (!((v.type() == t) || (fAllowNull && (v.isNull()))))
81 {
82 string err = strprintf("Expected type %s, got %s",
83 uvTypeName(t), uvTypeName(v.type()));
84 throw JSONRPCError(RPC_TYPE_ERROR, err);
85 }
86 i++;
87 }
88}
89
90void RPCTypeCheckObj(const UniValue& o,

Callers

nothing calls this directly

Calls 8

uvTypeNameFunction · 0.85
JSONRPCErrorFunction · 0.85
typeMethod · 0.80
findMethod · 0.80
sizeMethod · 0.45
isNullMethod · 0.45
insertMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected