From fb796b26dcefbe73ea12946d67455e516f35162b Mon Sep 17 00:00:00 2001 From: myriadcoin Date: Mon, 11 Aug 2014 00:05:29 +0200 Subject: [PATCH] Log algo in UpdateTip --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b3a7fd15..7dfe30a2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1966,8 +1966,9 @@ void static UpdateTip(CBlockIndex *pindexNew) { // New best block nTimeBestReceived = GetTime(); mempool.AddTransactionsUpdated(1); - LogPrintf("UpdateTip: new best=%s height=%d log2_work=%.8g tx=%lu date=%s progress=%f\n", + LogPrintf("UpdateTip: new best=%s height=%d log2_work=%.8g tx=%lu algo=%u date=%s progress=%f\n", chainActive.Tip()->GetBlockHash().ToString(), chainActive.Height(), log(chainActive.Tip()->nChainWork.getdouble())/log(2.0), (unsigned long)chainActive.Tip()->nChainTx, + chainActive.Tip()->GetAlgo(), DateTimeStrFormat("%Y-%m-%d %H:%M:%S", chainActive.Tip()->GetBlockTime()), Checkpoints::GuessVerificationProgress(chainActive.Tip()));