Simplifying account_remove
This commit is contained in:
parent
f4846c0f70
commit
64cb6fdb20
1 changed files with 1 additions and 9 deletions
|
@ -374,16 +374,8 @@ void rai::rpc_handler::account_remove ()
|
|||
if (account != wallet->store.end ())
|
||||
{
|
||||
wallet->store.erase (transaction, account_id);
|
||||
auto removed (wallet->store.find (transaction, account_id));
|
||||
boost::property_tree::ptree response_l;
|
||||
if (removed != wallet->store.end ())
|
||||
{
|
||||
response_l.put ("removed", "0");
|
||||
}
|
||||
else
|
||||
{
|
||||
response_l.put ("removed", "1");
|
||||
}
|
||||
response_l.put ("removed", "1");
|
||||
response (response_l);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue