aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2021-05-09 22:22:19 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2021-05-09 22:22:25 +0900
commitd9e2183c50f50465b9f173171fee240949bf8bd2 (patch)
treebd762607f2e5cc7912619bf67d164736c3fde8ad /src
parent2b45cf0bcdb3d2c1de46899e30885c953b57b475 (diff)
downloadbitcoin-d9e2183c50f50465b9f173171fee240949bf8bd2.tar.xz
rpc: include OBJ_USER_KEY in RPCArg constructor checks
Diffstat (limited to 'src')
-rw-r--r--src/rpc/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h
index 8ec18b2f35..06381d504c 100644
--- a/src/rpc/util.h
+++ b/src/rpc/util.h
@@ -173,7 +173,7 @@ struct RPCArg {
m_oneline_description{std::move(oneline_description)},
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(
@@ -193,7 +193,7 @@ struct RPCArg {
m_oneline_description{std::move(oneline_description)},
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;