From 09e71de808ec40ca713cf015fd365e4d127c6e78 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sat, 2 Feb 2019 03:09:03 +0300 Subject: [PATCH] Fix bench log for payee and special txes (#2678) --- src/validation.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index 786dcd9f9f483..3cfd4211cc276 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1883,6 +1883,7 @@ static ThresholdConditionCache warningcache[VERSIONBITS_NUM_BITS]; static int64_t nTimeCheck = 0; static int64_t nTimeForks = 0; static int64_t nTimeVerify = 0; +static int64_t nTimePayeeAndSpecial = 0; static int64_t nTimeConnect = 0; static int64_t nTimeIndex = 0; static int64_t nTimeCallbacks = 0; @@ -2220,8 +2221,8 @@ static bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockInd pindex->GetBlockHash().ToString(), FormatStateMessage(state)); } - int64_t nTime5 = GetTimeMicros(); nTimeVerify += nTime5 - nTime4; - LogPrint("bench", " - Payee and special txes: %.2fms [%.2fs]\n", 0.001 * (nTime4 - nTime2), nTimeVerify * 0.000001); + int64_t nTime5 = GetTimeMicros(); nTimePayeeAndSpecial += nTime5 - nTime4; + LogPrint("bench", " - Payee and special txes: %.2fms [%.2fs]\n", 0.001 * (nTime5 - nTime4), nTimePayeeAndSpecial * 0.000001); // END DASH