MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ParseResult

Function ParseResult

src/bitcoin-cli.cpp:1326–1330  ·  view source on GitHub ↗

Parse UniValue result to update the message to print to std::cout. */

Source from the content-addressed store, hash-verified

1324
1325/** Parse UniValue result to update the message to print to std::cout. */
1326static void ParseResult(const UniValue& result, std::string& strPrint)
1327{
1328 if (result.isNull()) return;
1329 strPrint = result.isStr() ? result.get_str() : result.write(2);
1330}
1331
1332/** Parse UniValue error to update the message to print to std::cerr and the code to return. */
1333static void ParseError(const UniValue& error, std::string& strPrint, int& nRet)

Callers 1

CommandLineRPCFunction · 0.85

Calls 3

isNullMethod · 0.80
isStrMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected