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()
542
542
};
543
543
}
544
544
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
-
555
545
static RPCHelpMan decodescript ()
556
546
{
557
547
return RPCHelpMan{
Original file line number Diff line number Diff line change 21
21
const std::string UNIX_EPOCH_TIME = " UNIX epoch time" ;
22
22
const std::string EXAMPLE_ADDRESS[2 ] = {" bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl" , " bc1q02ad21edsxd23d32dfgqqsz4vv4nmtfzuklhy3" };
23
23
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
+
24
34
void RPCTypeCheck (const UniValue& params,
25
35
const std::list<UniValueType>& typesExpected,
26
36
bool fAllowNull )
Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ class CPubKey;
39
39
class CScript ;
40
40
struct Sections ;
41
41
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
+
42
49
/* * Wrapper for UniValue::VType, which includes typeAny:
43
50
* Used to denote don't care type. */
44
51
struct UniValueType {
You can’t perform that action at this time.
0 commit comments