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

Function GetAllOutputTypes

src/rpc/util.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44const std::string EXAMPLE_ADDRESS[2] = {"bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl", "bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3"};
45
46std::string GetAllOutputTypes()
47{
48 std::vector<std::string> ret;
49 using U = std::underlying_type_t<TxoutType>;
50 for (U i = (U)TxoutType::NONSTANDARD; i <= (U)TxoutType::WITNESS_UNKNOWN; ++i) {
51 ret.emplace_back(GetTxnOutputType(static_cast<TxoutType>(i)));
52 }
53 return Join(ret, ", ");
54}
55
56void RPCTypeCheckObj(const UniValue& o,
57 const std::map<std::string, UniValueType>& typesExpected,

Callers 2

decodescriptFunction · 0.85
ScriptPubKeyDocFunction · 0.85

Calls 3

GetTxnOutputTypeFunction · 0.85
JoinFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected