MCPcopy Create free account
hub / github.com/ElementsProject/elements / ParseResult

Function ParseResult

src/bitcoin-cli.cpp:870–874  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

868
869/** Parse UniValue result to update the message to print to std::cout. */
870static void ParseResult(const UniValue& result, std::string& strPrint)
871{
872 if (result.isNull()) return;
873 strPrint = result.isStr() ? result.get_str() : result.write(2);
874}
875
876/** Parse UniValue error to update the message to print to std::cerr and the code to return. */
877static void ParseError(const UniValue& error, std::string& strPrint, int& nRet)

Callers 1

CommandLineRPCFunction · 0.85

Calls 3

isStrMethod · 0.80
isNullMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected