diff options
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 | ||||
-rw-r--r-- | src/ringct/rctSigs.cpp | 10 |
2 files changed, 6 insertions, 6 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); diff --git a/src/ringct/rctSigs.cpp b/src/ringct/rctSigs.cpp index b7efe3ae7..c7f9b6879 100644 --- a/src/ringct/rctSigs.cpp +++ b/src/ringct/rctSigs.cpp @@ -750,7 +750,7 @@ namespace rct { for (size_t i = 0; i < rv.outPk.size(); ++i) { if (!results[i]) { - LOG_ERROR("Range proof verified failed for input " << i); + LOG_PRINT_L1("Range proof verified failed for output " << i); return false; } } @@ -761,7 +761,7 @@ namespace rct { DP("mg sig verified?"); DP(mgVerd); if (!mgVerd) { - LOG_ERROR("MG signature verification failed"); + LOG_PRINT_L1("MG signature verification failed"); return false; } @@ -803,7 +803,7 @@ namespace rct { for (size_t i = 0; i < results.size(); ++i) { if (!results[i]) { - LOG_ERROR("Range proof verified failed for input " << i); + LOG_PRINT_L1("Range proof verified failed for output " << i); return false; } } @@ -830,7 +830,7 @@ namespace rct { for (size_t i = 0; i < results.size(); ++i) { if (!results[i]) { - LOG_ERROR("verRctMGSimple failed for input " << i); + LOG_PRINT_L1("verRctMGSimple failed for input " << i); return false; } } @@ -843,7 +843,7 @@ namespace rct { //check pseudoOuts vs Outs.. if (!equalKeys(sumPseudoOuts, sumOutpks)) { - LOG_ERROR("Sum check failed"); + LOG_PRINT_L1("Sum check failed"); return false; } |