mirror of
https://github.com/monero-project/monero.git
synced 2025-08-20 06:28:14 -04:00
daemon: print peers' top height in sync_info
This commit is contained in:
parent
08abb670e1
commit
2ec15a6931
3 changed files with 8 additions and 2 deletions
|
@ -239,6 +239,8 @@ namespace cryptonote
|
|||
|
||||
cnx.connection_id = cntxt.m_connection_id;
|
||||
|
||||
cnx.height = cntxt.m_remote_blockchain_height;
|
||||
|
||||
connections.push_back(cnx);
|
||||
|
||||
return true;
|
||||
|
@ -264,6 +266,8 @@ namespace cryptonote
|
|||
return false;
|
||||
}
|
||||
|
||||
context.m_remote_blockchain_height = hshd.current_height;
|
||||
|
||||
uint64_t target = m_core.get_target_blockchain_height();
|
||||
if (target == 0)
|
||||
target = m_core.get_current_blockchain_height();
|
||||
|
@ -293,7 +297,6 @@ namespace cryptonote
|
|||
}
|
||||
LOG_PRINT_L1("Remote blockchain height: " << hshd.current_height << ", id: " << hshd.top_id);
|
||||
context.m_state = cryptonote_connection_context::state_synchronizing;
|
||||
context.m_remote_blockchain_height = hshd.current_height;
|
||||
//let the socket to send response to handshake, but request callback, to let send request data after response
|
||||
LOG_PRINT_CCONTEXT_L2("requesting callback");
|
||||
++context.m_callback_request_count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue