aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2017-08-22 14:54:18 +0100
committerHoward Chu <hyc@symas.com>2017-08-22 15:11:09 +0100
commitc22d22e2db9af50c926f623718b814d041b89c8e (patch)
tree820fc28ae0056c13debb7c92db7073d9c3890be9 /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentToggle SAFE syncmode on and off automatically (diff)
downloadmonero-c22d22e2db9af50c926f623718b814d041b89c8e.tar.xz
Cleanup test impact of adding safesyncmode() method
Diffstat (limited to '')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index 87c02709a..d7c67e767 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -295,7 +295,7 @@ namespace cryptonote
<< " [Your node is " << std::abs(diff) << " blocks (" << ((abs(diff) - diff_v2) / (24 * 60 * 60 / DIFFICULTY_TARGET_V1)) + (diff_v2 / (24 * 60 * 60 / DIFFICULTY_TARGET_V2)) << " days) "
<< (0 <= diff ? std::string("behind") : std::string("ahead"))
<< "] " << ENDL << "SYNCHRONIZATION started");
- m_core.get_blockchain_storage().safesyncmode(false);
+ m_core.safesyncmode(false);
}
LOG_PRINT_L1("Remote blockchain height: " << hshd.current_height << ", id: " << hshd.top_id);
context.m_state = cryptonote_connection_context::state_synchronizing;
@@ -1474,7 +1474,7 @@ skip:
<< "**********************************************************************");
m_core.on_synchronized();
}
- m_core.get_blockchain_storage().safesyncmode(true);
+ m_core.safesyncmode(true);
return true;
}
//------------------------------------------------------------------------------------------------------------------------