mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-28 16:36:04 +01:00
rpc: Keep default argument value in correct type
This commit is contained in:
@@ -145,7 +145,9 @@ struct RPCArg {
|
||||
*/
|
||||
OMITTED,
|
||||
};
|
||||
using Fallback = std::variant<Optional, /* default value for optional args */ std::string>;
|
||||
using DefaultHint = std::string;
|
||||
using Default = UniValue;
|
||||
using Fallback = std::variant<Optional, /* hint for default value */ DefaultHint, /* default constant value */ Default>;
|
||||
const std::string m_names; //!< The name of the arg (can be empty for inner args, can contain multiple aliases separated by | for named request arguments)
|
||||
const Type m_type;
|
||||
const bool m_hidden;
|
||||
|
||||
Reference in New Issue
Block a user