mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Move GetAllOutputTypes function from rpc/rawtransaction.cpp to rpc/util.{h|cpp}
This commit is contained in:
@@ -542,16 +542,6 @@ static RPCHelpMan decoderawtransaction()
|
||||
};
|
||||
}
|
||||
|
||||
static std::string GetAllOutputTypes()
|
||||
{
|
||||
std::vector<std::string> ret;
|
||||
using U = std::underlying_type<TxoutType>::type;
|
||||
for (U i = (U)TxoutType::NONSTANDARD; i <= (U)TxoutType::WITNESS_UNKNOWN; ++i) {
|
||||
ret.emplace_back(GetTxnOutputType(static_cast<TxoutType>(i)));
|
||||
}
|
||||
return Join(ret, ", ");
|
||||
}
|
||||
|
||||
static RPCHelpMan decodescript()
|
||||
{
|
||||
return RPCHelpMan{
|
||||
|
||||
Reference in New Issue
Block a user