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

This commit is contained in:
moneromooo-monero 2016-02-17 22:57:14 +00:00
parent 2b5e155816
commit 889217381f
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

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);