Skip to content

Commit 09e71de

Browse files
authored
Fix bench log for payee and special txes (#2678)
1 parent 03fa115 commit 09e71de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/validation.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1883,6 +1883,7 @@ static ThresholdConditionCache warningcache[VERSIONBITS_NUM_BITS];
18831883
static int64_t nTimeCheck = 0;
18841884
static int64_t nTimeForks = 0;
18851885
static int64_t nTimeVerify = 0;
1886+
static int64_t nTimePayeeAndSpecial = 0;
18861887
static int64_t nTimeConnect = 0;
18871888
static int64_t nTimeIndex = 0;
18881889
static int64_t nTimeCallbacks = 0;
@@ -2220,8 +2221,8 @@ static bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockInd
22202221
pindex->GetBlockHash().ToString(), FormatStateMessage(state));
22212222
}
22222223

2223-
int64_t nTime5 = GetTimeMicros(); nTimeVerify += nTime5 - nTime4;
2224-
LogPrint("bench", " - Payee and special txes: %.2fms [%.2fs]\n", 0.001 * (nTime4 - nTime2), nTimeVerify * 0.000001);
2224+
int64_t nTime5 = GetTimeMicros(); nTimePayeeAndSpecial += nTime5 - nTime4;
2225+
LogPrint("bench", " - Payee and special txes: %.2fms [%.2fs]\n", 0.001 * (nTime5 - nTime4), nTimePayeeAndSpecial * 0.000001);
22252226

22262227
// END DASH
22272228

0 commit comments

Comments
 (0)