aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2022-08-20 00:40:46 +0200
committerselsta <selsta@sent.at>2022-09-06 22:09:39 +0200
commit93db74a91ed7416754899d4cbacf213647894871 (patch)
tree66ce405881f8d64100d75230ec2e4952237bdfca /src/rpc/core_rpc_server.cpp
parentMerge pull request #8491 (diff)
downloadmonero-93db74a91ed7416754899d4cbacf213647894871.tar.xz
rpc: skip bootstrap nodes that are lower than last checkpoint
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 5304333ff..8d13b7634 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -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();