diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:57:06 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:57:06 -0500 |
| commit | e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08 (patch) | |
| tree | 134d499069659c6bbbfd372d32d45a93ea718184 /src/rpc/core_rpc_server.cpp | |
| parent | 4c4586ca7b9ff5fd7668687a0d8b2bdc8a05f92f (diff) | |
| parent | 1a66a86f94380e24e3aadba649e47708cfe401d0 (diff) | |
| download | monzero-core-e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08.tar.gz monzero-core-e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08.tar.xz monzero-core-e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08.zip | |
Merge pull request #5502
25a7cfd add a few checks where it seems appropriate (moneromooo-monero)
1a66a86 remove unused code (moneromooo-monero)
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 cfa1c49d8..82da06bc5 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -1476,7 +1476,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; |
