Skip to content

Commit fa9708f

Browse files
author
MarcoFalke
committed
rpc: Assert that passed arg names are equal to hardcoded ones
1 parent faaeb2b commit fa9708f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpc/server.h

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class CRPCCommand
112112
fn().GetArgNames(),
113113
intptr_t(fn))
114114
{
115+
CHECK_NONFATAL(fn().m_name == name_in);
116+
CHECK_NONFATAL(fn().GetArgNames() == args_in);
115117
}
116118

117119
//! Simplified constructor taking plain rpcfn_type function pointer.

0 commit comments

Comments
 (0)