mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 02:11:24 +02:00
rpc: include OBJ_USER_KEY in RPCArg constructor checks
This commit is contained in:
@ -173,7 +173,7 @@ struct RPCArg {
|
|||||||
m_oneline_description{std::move(oneline_description)},
|
m_oneline_description{std::move(oneline_description)},
|
||||||
m_type_str{std::move(type_str)}
|
m_type_str{std::move(type_str)}
|
||||||
{
|
{
|
||||||
CHECK_NONFATAL(type != Type::ARR && type != Type::OBJ);
|
CHECK_NONFATAL(type != Type::ARR && type != Type::OBJ && type != Type::OBJ_USER_KEYS);
|
||||||
}
|
}
|
||||||
|
|
||||||
RPCArg(
|
RPCArg(
|
||||||
@ -193,7 +193,7 @@ struct RPCArg {
|
|||||||
m_oneline_description{std::move(oneline_description)},
|
m_oneline_description{std::move(oneline_description)},
|
||||||
m_type_str{std::move(type_str)}
|
m_type_str{std::move(type_str)}
|
||||||
{
|
{
|
||||||
CHECK_NONFATAL(type == Type::ARR || type == Type::OBJ);
|
CHECK_NONFATAL(type == Type::ARR || type == Type::OBJ || type == Type::OBJ_USER_KEYS);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsOptional() const;
|
bool IsOptional() const;
|
||||||
|
Reference in New Issue
Block a user