mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 21:00:27 -04:00
rpc: skip bootstrap nodes that are lower than last checkpoint
This commit is contained in:
parent
57e57c239b
commit
93db74a91e
4 changed files with 24 additions and 0 deletions
|
@ -2290,6 +2290,12 @@ namespace cryptonote
|
|||
return m_bootstrap_daemon->handle_result(false, {});
|
||||
}
|
||||
|
||||
if (bootstrap_daemon_height < m_core.get_checkpoints().get_max_height())
|
||||
{
|
||||
MINFO("Bootstrap daemon height is lower than the latest checkpoint");
|
||||
return m_bootstrap_daemon->handle_result(false, {});
|
||||
}
|
||||
|
||||
if (!m_p2p.get_payload_object().no_sync())
|
||||
{
|
||||
uint64_t top_height = m_core.get_current_blockchain_height();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue