diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-29 16:51:39 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-29 20:52:40 +0000 |
commit | 25a7cfdb4a4e652c7d0a0f93333d60b0b9d186d1 (patch) | |
tree | 28c3bdb49aafb1c27bc08378ab91ccd7d91a6c48 /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #5486 (diff) | |
download | monero-25a7cfdb4a4e652c7d0a0f93333d60b0b9d186d1.tar.xz |
add a few checks where it seems appropriate
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index c41fb37d8..4c73a8bb3 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1510,7 +1510,7 @@ namespace cryptonote ok = ok && getheight_res.status == CORE_RPC_STATUS_OK; m_should_use_bootstrap_daemon = ok && top_height + 10 < getheight_res.height; - MINFO((m_should_use_bootstrap_daemon ? "Using" : "Not using") << " the bootstrap daemon (our height: " << top_height << ", bootstrap daemon's height: " << getheight_res.height << ")"); + MINFO((m_should_use_bootstrap_daemon ? "Using" : "Not using") << " the bootstrap daemon (our height: " << top_height << ", bootstrap daemon's height: " << (ok ? getheight_res.height : 0) << ")"); } if (!m_should_use_bootstrap_daemon) return false; |