mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
wallet, rpc: Use OUTPUT_TYPES to describe the output types instead of hardcoding them
This commit is contained in:
@@ -46,6 +46,11 @@ const std::string& FormatOutputType(OutputType type)
|
||||
assert(false);
|
||||
}
|
||||
|
||||
std::string FormatAllOutputTypes()
|
||||
{
|
||||
return util::Join(OUTPUT_TYPES, ", ", [](const auto& i) { return "\"" + FormatOutputType(i) + "\""; });
|
||||
}
|
||||
|
||||
CTxDestination AddAndGetDestinationForScript(FlatSigningProvider& keystore, const CScript& script, OutputType type)
|
||||
{
|
||||
// Add script to keystore
|
||||
|
||||
Reference in New Issue
Block a user