From fa9708f94c01cb8bf2971bdf404af38c38fa341b Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 3 Jul 2020 10:13:18 -0400 Subject: rpc: Assert that passed arg names are equal to hardcoded ones --- src/rpc/server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rpc') 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. -- cgit v1.2.3