Restore daemon interactive mode

Daemon interactive mode is now working again.

RPC mapped calls in daemon and wallet have both had connection_context
removed as an argument as that argument was not being used anywhere.
This commit is contained in:
Thomas Winget 2015-03-27 08:01:30 -04:00
parent cd31ea9631
commit a0590d29cd
No known key found for this signature in database
GPG key ID: 58131A160789E630
16 changed files with 512 additions and 162 deletions

View file

@ -269,17 +269,19 @@ namespace epee
string_tools::trim(command);
LOG_PRINT_L2("Read command: " << command);
if(0 == command.compare("exit") || 0 == command.compare("q"))
{
continue_handle = false;
}else if (command.empty())
if (command.empty())
{
continue;
}
else if(cmd_handler(command))
{
continue;
} else
}
else if(0 == command.compare("exit") || 0 == command.compare("q"))
{
continue_handle = false;
}
else
{
std::cout << "unknown command: " << command << std::endl;
std::cout << usage;