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

Method ToDescriptionString

src/rpc/util.cpp:613–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611}
612
613std::string RPCResults::ToDescriptionString() const
614{
615 std::string result;
616 for (const auto& r : m_results) {
617 if (r.m_type == RPCResult::Type::ANY) continue; // for testing only
618 if (r.m_cond.empty()) {
619 result += "\nResult:\n";
620 } else {
621 result += "\nResult (" + r.m_cond + "):\n";
622 }
623 Sections sections;
624 r.ToSections(sections);
625 result += sections.ToString();
626 }
627 return result;
628}
629
630std::string RPCExamples::ToDescriptionString() const
631{

Callers 2

PushMethod · 0.80
ToStringMethod · 0.80

Calls 7

ToSectionsMethod · 0.80
emptyMethod · 0.45
ToStringMethod · 0.45
sizeMethod · 0.45
atMethod · 0.45
indexMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected