From 71fc01aaf25e2d07b531b48195390e6798afbf9f Mon Sep 17 00:00:00 2001 From: wowario Date: Thu, 10 Jun 2021 15:00:07 +0300 Subject: [PATCH] v0.10 ASCII art --- src/cryptonote_core/cryptonote_core.cpp | 48 +++++++++++++++++-- .../cryptonote_protocol_handler.inl | 18 ++++++- 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 68d5eea4d..63a4a2a03 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -1763,9 +1763,51 @@ namespace cryptonote main_message = "The daemon is running offline and will not attempt to sync to the Monero network."; else main_message = "The daemon will start synchronizing with the network. This may take a long time to complete."; - MGINFO_MAGENTA(ENDL << - "\n \n" - "\n \n" << ENDL); + MGINFO_MAGENTA(ENDL << + "\n\n" + " ██╗██╗ ██╗███╗ ██╗██╗ ██╗██╗███████╗ \n" + " ██║██║ ██║████╗ ██║██║ ██╔╝██║██╔════╝ \n" + " ██║██║ ██║██╔██╗ ██║█████╔╝ ██║█████╗ \n" + " ██ ██║██║ ██║██║╚██╗██║██╔═██╗ ██║██╔══╝ \n" + " ╚█████╔╝╚██████╔╝██║ ╚████║██║ ██╗██║███████╗ \n" + " ╚════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝╚══════╝ " + << ENDL); + MGINFO_RED(ENDL << + " @@@@&///////////////@ \n" + " @@@@@@@@@@@@@@@@*/////////////////////#@ \n" + " @#////////(&@@@@//////////////////////////////////@ \n" + " @&////////////////////////////#@@@@@@@ *////////@ \n" + " @%///////////////////////////&@@@@@@/ /////&@ \n" + " @@//////////////////////////%@@@@@@ */////@ \n" + " @@#//////////////#@@@@@@@@@@@@@@@& ,///////////* /////#@ \n" + " @///////////*@@@@@@@@@@@@@ .////////////@@@#//////&@ \n" + " @(///////////%@@@@/,%&&/ ,//////. */////////(@@@%///#@ \n" + " @%//////////// *//////////////////////////// //////////@@@@///& \n" + "@%//////////. *///////////////S/v/n/g/V/f/G/u/r/C/b/b/e//////@@@@/// \n" + " @////////////*.///////%/////////////Z/n/a/f/Z/b/a/r/l/////////@@@(// \n" + " @@@#////////////..///@@@(///////////////////////////////////@@@/// \n" + " @@#//////////. //&@@(//////////////////////////((((*////(//// \n" + " &//////// ///@@%////////////////////(((((((((,*///////// \n" + " //&@@///////////((((%%%%(/////%%%%(,*//////// \n" + " .//@@@/////////*(((///%%//%//%%/////*///////# \n" + " //(@@@@////////**////(%%%%%%%%%//////**////// \n" + " ////////////////,/////%%%//%%////////#*//// \n" + " .////////////////*///////////////..,**///// \n" + " ,////////////////*/////#...,***////////// \n" + " &////////////////*,,**///////////////// \n" + " #/////////////////////////////////// \n" + " %/////////////////////////////// \n" + " ////////////////////////// \n" + " //////////////// " + << ENDL); + MGINFO_MAGENTA(ENDL << + " ██╗███████╗███████╗███████╗ \n" + " ██║██╔════╝██╔════╝██╔════╝ \n" + " ██║█████╗ █████╗ █████╗ \n" + " ██ ██║██╔══╝ ██╔══╝ ██╔══╝ \n" + " ╚█████╔╝███████╗██║ ██║ \n" + " ╚════╝ ╚══════╝╚═╝ ╚═╝ \n" + "\n\n" << ENDL); MGINFO_YELLOW(ENDL << "**********************************************************************" << ENDL << main_message << ENDL << ENDL diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 84664208d..d54a88558 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -1676,8 +1676,22 @@ namespace cryptonote + std::to_string(previous_stripe) + " -> " + std::to_string(current_stripe); if (ELPP->vRegistry()->allowed(el::Level::Debug, "sync-info")) timing_message += std::string(": ") + m_block_queue.get_overview(current_blockchain_height); - MGINFO_YELLOW("Synced " << current_blockchain_height << "/" << target_blockchain_height - << progress_message << timing_message); + uint64_t num = (rand() % 4) + 1; + switch (num) + { + case 1: + MGINFO_MAGENTA("Synced " << current_blockchain_height << "/" << target_blockchain_height << progress_message << timing_message); + break; + case 2: + MGINFO_YELLOW("Synced " << current_blockchain_height << "/" << target_blockchain_height << progress_message << timing_message); + break; + case 3: + MGINFO_BLUE("Synced " << current_blockchain_height << "/" << target_blockchain_height << progress_message << timing_message); + break; + case 4: + MGINFO_GREEN("Synced " << current_blockchain_height << "/" << target_blockchain_height << progress_message << timing_message); + break; + } if (previous_stripe != current_stripe) notify_new_stripe(context, current_stripe); }