wallet, rpc: Use OUTPUT_TYPES to describe the output types instead of hardcoding them

This commit is contained in:
w0xlt
2025-06-18 15:39:17 -03:00
parent dff208bd5a
commit 8cc9845b8d
3 changed files with 8 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ static constexpr auto OUTPUT_TYPES = std::array{
std::optional<OutputType> ParseOutputType(const std::string& str);
const std::string& FormatOutputType(OutputType type);
std::string FormatAllOutputTypes();
/**
* Get a destination of the requested type (if possible) to the specified script.