mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 13:02:38 +02:00
rpc: Assert that passed arg names are equal to hardcoded ones
This commit is contained in:
parent
faaeb2b0b3
commit
fa9708f94c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user