forked from lthn/blockchain
minor fixes in logs
This commit is contained in:
parent
6356b9b09d
commit
3609e683d9
1 changed files with 7 additions and 7 deletions
|
|
@ -179,17 +179,17 @@ namespace currency
|
|||
&& m_core.get_blockchain_storage().get_checkpoints().get_top_checkpoint_height() < hshd.last_checkpoint_height
|
||||
&& m_core.get_current_blockchain_size() < hshd.last_checkpoint_height )
|
||||
{
|
||||
LOG_PRINT_RED("Remote node have longer checkpoints zone( " << hshd.last_checkpoint_height << ") " <<
|
||||
"that local (" << m_core.get_blockchain_storage().get_checkpoints().get_top_checkpoint_height() << ")" <<
|
||||
"That means that current software is outdated, please updated it." <<
|
||||
"Current heigh lay under checkpoints on remote host, so it is not possible validate this transactions on local host, disconnecting.", LOG_LEVEL_0);
|
||||
LOG_PRINT_RED("Remote node has longer checkpoints zone (" << hshd.last_checkpoint_height << ") " <<
|
||||
"than local (" << m_core.get_blockchain_storage().get_checkpoints().get_top_checkpoint_height() << "). " <<
|
||||
"It means that current software is outdated, please updated it! " <<
|
||||
"Current height lays under checkpoints zone on remote host, so it's impossible to validate remote transactions locally, disconnecting.", LOG_LEVEL_0);
|
||||
return false;
|
||||
}
|
||||
else if (m_core.get_blockchain_storage().get_checkpoints().get_top_checkpoint_height() < hshd.last_checkpoint_height)
|
||||
{
|
||||
LOG_PRINT_MAGENTA("Remote node have longer checkpoints zone( " << hshd.last_checkpoint_height << ") " <<
|
||||
"that local (" << m_core.get_blockchain_storage().get_checkpoints().get_top_checkpoint_height() << ")" <<
|
||||
"That means that current software is outdated, please updated it.", LOG_LEVEL_0);
|
||||
LOG_PRINT_MAGENTA("Remote node has longer checkpoints zone (" << hshd.last_checkpoint_height << ") " <<
|
||||
"than local (" << m_core.get_blockchain_storage().get_checkpoints().get_top_checkpoint_height() << "). " <<
|
||||
"It means that current software is outdated, please updated it!", LOG_LEVEL_0);
|
||||
}
|
||||
|
||||
context.m_state = currency_connection_context::state_synchronizing;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue