diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-12-13 10:23:22 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-12-13 10:23:22 +0200 |
| commit | c2a9229310672c38e44e46ad5b120fe2209a739c (patch) | |
| tree | 79f2773a114edc999c953cd6a0c914c2496e9e45 | |
| parent | 9d19e62fa28b3442f4e3cbd7b9e68c0f8310bb91 (diff) | |
| parent | 4299bdf61460915dca8fa504512b084ece02c929 (diff) | |
| download | monzero-core-c2a9229310672c38e44e46ad5b120fe2209a739c.tar.gz monzero-core-c2a9229310672c38e44e46ad5b120fe2209a739c.tar.xz monzero-core-c2a9229310672c38e44e46ad5b120fe2209a739c.zip | |
Merge pull request #1439
4299bdf6 Improve language of 'node ahead by' message (NanoAkron)
| -rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index f0f9102a8..b13c1f437 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -285,7 +285,7 @@ namespace cryptonote int64_t last_block_v1 = 1009826; int64_t diff_v2 = max_block_height > last_block_v1 ? min(abs(diff), max_block_height - last_block_v1) : 0; LOG_PRINT_CCONTEXT_YELLOW("Sync data returned a new top block candidate: " << m_core.get_current_blockchain_height() << " -> " << hshd.current_height - << " [" << std::abs(diff) << " Your node is (" << ((abs(diff) - diff_v2) / (24 * 60 * 60 / DIFFICULTY_TARGET_V1)) + (diff_v2 / (24 * 60 * 60 / DIFFICULTY_TARGET_V2)) << " days) " + << " [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", (is_inital ? LOG_LEVEL_0:LOG_LEVEL_1)); LOG_PRINT_L1("Remote blockchain height: " << hshd.current_height << ", id: " << hshd.top_id); |
