RPC search_pending_all
This commit is contained in:
parent
d1df852f7f
commit
2c6159e30b
2 changed files with 20 additions and 0 deletions
|
@ -1916,6 +1916,21 @@ void rai::rpc_handler::search_pending ()
|
|||
}
|
||||
}
|
||||
|
||||
void rai::rpc_handler::search_pending_all ()
|
||||
{
|
||||
if (rpc.config.enable_control)
|
||||
{
|
||||
node.wallets.search_pending_all ();
|
||||
boost::property_tree::ptree response_l;
|
||||
response_l.put ("success", "");
|
||||
response (response_l);
|
||||
}
|
||||
else
|
||||
{
|
||||
error_response (response, "RPC control is disabled");
|
||||
}
|
||||
}
|
||||
|
||||
void rai::rpc_handler::send ()
|
||||
{
|
||||
if (rpc.config.enable_control)
|
||||
|
@ -2945,6 +2960,10 @@ void rai::rpc_handler::process_request ()
|
|||
{
|
||||
search_pending ();
|
||||
}
|
||||
else if (action == "search_pending_all")
|
||||
{
|
||||
search_pending_all ();
|
||||
}
|
||||
else if (action == "send")
|
||||
{
|
||||
send ();
|
||||
|
|
|
@ -144,6 +144,7 @@ public:
|
|||
void representatives ();
|
||||
void republish ();
|
||||
void search_pending ();
|
||||
void search_pending_all ();
|
||||
void send ();
|
||||
void stop ();
|
||||
void successors ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue