forked from lthn/blockchain
added notice for pos_mining in wallet, removed warnings with new boost
This commit is contained in:
parent
aac9cb548b
commit
8c065fd974
2 changed files with 12 additions and 1 deletions
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#include <list>
|
||||
#include <numeric>
|
||||
#include <boost/timer.hpp>
|
||||
#include <boost/timer/timer.hpp>
|
||||
#include <boost/uuid/uuid.hpp>
|
||||
#include <boost/uuid/random_generator.hpp>
|
||||
|
||||
|
|
|
|||
|
|
@ -153,6 +153,11 @@ namespace
|
|||
return message_writer(color ? epee::log_space::console_color_green : epee::log_space::console_color_default, false, std::string(), LOG_LEVEL_2);
|
||||
}
|
||||
|
||||
message_writer success_msg_writer(epee::log_space::console_colors color)
|
||||
{
|
||||
return message_writer(color, false, std::string(), LOG_LEVEL_2);
|
||||
}
|
||||
|
||||
message_writer fail_msg_writer()
|
||||
{
|
||||
return message_writer(epee::log_space::console_color_red, true, "Error: ", LOG_LEVEL_0);
|
||||
|
|
@ -1576,6 +1581,12 @@ int main(int argc, char* argv[])
|
|||
wal.init(daemon_address);
|
||||
if (command_line::get_arg(vm, arg_generate_new_wallet).size())
|
||||
return EXIT_FAILURE;
|
||||
|
||||
if (command_line::get_arg(vm, arg_do_pos_mining))
|
||||
{
|
||||
success_msg_writer(epee::log_space::console_color_cyan) << "IMORTANT NOTICE! Instance started with \"do-pos-mining\" parameter, running copy of this wallet on other host at the same time may cause key image conflicts";
|
||||
}
|
||||
|
||||
if (!offline_mode)
|
||||
wal.refresh();
|
||||
LOG_PRINT_GREEN("Loaded ok", LOG_LEVEL_0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue