aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-07-03 10:13:18 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-07-03 10:32:36 -0400
commitfa9708f94c01cb8bf2971bdf404af38c38fa341b (patch)
tree34ef5b23ed028032ac556b96cd99efe7bbf03a7d /src/rpc/server.h
parentfaaeb2b0b347b40ce456a951eec5e820587e5b02 (diff)
downloadbitcoin-fa9708f94c01cb8bf2971bdf404af38c38fa341b.tar.xz
rpc: Assert that passed arg names are equal to hardcoded ones
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r--src/rpc/server.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h
index 1c587ae88f..6da3e94ea2 100644
--- a/src/rpc/server.h
+++ b/src/rpc/server.h
@@ -112,6 +112,8 @@ public:
fn().GetArgNames(),
intptr_t(fn))
{
+ CHECK_NONFATAL(fn().m_name == name_in);
+ CHECK_NONFATAL(fn().GetArgNames() == args_in);
}
//! Simplified constructor taking plain rpcfn_type function pointer.