mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +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(),
|
fn().GetArgNames(),
|
||||||
intptr_t(fn))
|
intptr_t(fn))
|
||||||
{
|
{
|
||||||
|
CHECK_NONFATAL(fn().m_name == name_in);
|
||||||
|
CHECK_NONFATAL(fn().GetArgNames() == args_in);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Simplified constructor taking plain rpcfn_type function pointer.
|
//! Simplified constructor taking plain rpcfn_type function pointer.
|
||||||
|
Loading…
Reference in New Issue
Block a user