mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
rpc: Assert that passed arg names are equal to hardcoded ones
This commit is contained in:
parent
faaeb2b0b3
commit
fa9708f94c
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue