File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed
Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -542,16 +542,6 @@ static RPCHelpMan decoderawtransaction()
542542 };
543543}
544544
545- static std::string GetAllOutputTypes ()
546- {
547- std::vector<std::string> ret;
548- using U = std::underlying_type<TxoutType>::type;
549- for (U i = (U)TxoutType::NONSTANDARD; i <= (U)TxoutType::WITNESS_UNKNOWN; ++i) {
550- ret.emplace_back (GetTxnOutputType (static_cast <TxoutType>(i)));
551- }
552- return Join (ret, " , " );
553- }
554-
555545static RPCHelpMan decodescript ()
556546{
557547 return RPCHelpMan{
Original file line number Diff line number Diff line change 2121const std::string UNIX_EPOCH_TIME = " UNIX epoch time" ;
2222const std::string EXAMPLE_ADDRESS[2 ] = {" bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl" , " bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3" };
2323
24+ std::string GetAllOutputTypes ()
25+ {
26+ std::vector<std::string> ret;
27+ using U = std::underlying_type<TxoutType>::type;
28+ for (U i = (U)TxoutType::NONSTANDARD; i <= (U)TxoutType::WITNESS_UNKNOWN; ++i) {
29+ ret.emplace_back (GetTxnOutputType (static_cast <TxoutType>(i)));
30+ }
31+ return Join (ret, " , " );
32+ }
33+
2434void RPCTypeCheck (const UniValue& params,
2535 const std::list<UniValueType>& typesExpected,
2636 bool fAllowNull )
Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ class CPubKey;
3939class CScript ;
4040struct Sections ;
4141
42+ /* *
43+ * Gets all existing output types formatted for RPC help sections.
44+ *
45+ * @return Comma separated string representing output type names.
46+ */
47+ std::string GetAllOutputTypes ();
48+
4249/* * Wrapper for UniValue::VType, which includes typeAny:
4350 * Used to denote don't care type. */
4451struct UniValueType {
You can’t perform that action at this time.
0 commit comments