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

Method IsOptional

src/rpc/util.cpp:923–930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921}
922
923bool RPCArg::IsOptional() const
924{
925 if (m_fallback.index() != 0) {
926 return true;
927 } else {
928 return RPCArg::Optional::NO != std::get<RPCArg::Optional>(m_fallback);
929 }
930}
931
932std::string RPCArg::ToDescriptionString(bool is_named_arg) const
933{

Callers 2

IsValidNumArgsMethod · 0.80
ToStringMethod · 0.80

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected