core: print "update needed" hard fork notifications in red

This commit is contained in:
moneromooo-monero 2016-02-17 22:57:14 +00:00 committed by Howard Chu
parent 43fe8c4933
commit ea5fa5e9b6

View File

@ -943,14 +943,14 @@ namespace cryptonote
HardFork::State state = m_blockchain_storage.get_hard_fork_state(); HardFork::State state = m_blockchain_storage.get_hard_fork_state();
switch (state) { switch (state) {
case HardFork::LikelyForked: case HardFork::LikelyForked:
LOG_PRINT_L0(ENDL LOG_PRINT_RED_L0(ENDL
<< "**********************************************************************" << ENDL << "**********************************************************************" << ENDL
<< "Last scheduled hard fork is too far in the past." << ENDL << "Last scheduled hard fork is too far in the past." << ENDL
<< "We are most likely forked from the network. Daemon update needed now." << ENDL << "We are most likely forked from the network. Daemon update needed now." << ENDL
<< "**********************************************************************" << ENDL); << "**********************************************************************" << ENDL);
break; break;
case HardFork::UpdateNeeded: case HardFork::UpdateNeeded:
LOG_PRINT_L0(ENDL LOG_PRINT_RED_L0(ENDL
<< "**********************************************************************" << ENDL << "**********************************************************************" << ENDL
<< "Last scheduled hard fork time shows a daemon update is needed now." << ENDL << "Last scheduled hard fork time shows a daemon update is needed now." << ENDL
<< "**********************************************************************" << ENDL); << "**********************************************************************" << ENDL);