diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-09-09 12:55:40 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-09-09 12:55:40 -0500 |
commit | 3178bbe083bcb944da602b67e79ee3422accea02 (patch) | |
tree | 2986799eb48c438b40a3f7c95fbf323ba26c5950 /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #8548 (diff) | |
parent | rpc: skip bootstrap nodes that are lower than last checkpoint (diff) | |
download | monero-3178bbe083bcb944da602b67e79ee3422accea02.tar.xz |
Merge pull request #8552
93db74a rpc: skip bootstrap nodes that are lower than last checkpoint (selsta)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 6 |
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(); |