diff options
| author | tobtoht <tob@featherwallet.org> | 2026-06-30 09:54:48 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2026-06-30 09:54:48 +0000 |
| commit | e1cbca2cf588eb767eeb16d74563e40e898c7d08 (patch) | |
| tree | 677c7c99094539cdbe74c2270603fa546dc76ae4 | |
| parent | b69123a17912f556dfd0cc34b2fa111f4983551b (diff) | |
| parent | 12098ff5d66d86d73360d28c548c350f6e7b64c8 (diff) | |
| download | monzero-core-e1cbca2cf588eb767eeb16d74563e40e898c7d08.tar.gz monzero-core-e1cbca2cf588eb767eeb16d74563e40e898c7d08.tar.xz monzero-core-e1cbca2cf588eb767eeb16d74563e40e898c7d08.zip | |
Merge pull request #10598
12098ff p2p: restore safe sync mode when target height drops (selsta)
ACKs: SChernykh, thomasbuilds, j-berman
| -rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 6c36a3b5b..cf6830f64 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -2841,6 +2841,8 @@ skip: { MINFO("Target height decreasing from " << previous_target << " to " << target); m_core.set_target_blockchain_height(target); + if (target < m_core.get_current_blockchain_height() + 5) + m_core.safesyncmode(true); if (target == 0 && context.m_state > cryptonote_connection_context::state_before_handshake && !m_stopping) { MCWARNING("global", "monerod is now disconnected from the network"); |
