Skip to content

Commit 4e28b54

Browse files
committed
merge bitcoin#23072: Remove unnecessary timing of Callbacks bench
1 parent aae32c3 commit 4e28b54

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/validation.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,7 +2125,6 @@ static int64_t nTimeDashSpecific = 0;
21252125
static int64_t nTimeConnect = 0;
21262126
static int64_t nTimeIndexConnect = 0;
21272127
static int64_t nTimeIndexWrite = 0;
2128-
static int64_t nTimeCallbacks = 0;
21292128
static int64_t nTimeTotal = 0;
21302129
static int64_t nBlocksTotal = 0;
21312130

@@ -2569,18 +2568,15 @@ bool CChainState::ConnectBlock(const CBlock& block, BlockValidationState& state,
25692568
uiInterface.NotifyMasternodeListChanged(mnlu.new_list, pindex);
25702569
}
25712570

2572-
int64_t nTime8 = GetTimeMicros(); nTimeCallbacks += nTime8 - nTime5;
2573-
LogPrint(BCLog::BENCHMARK, " - Callbacks: %.2fms [%.2fs (%.2fms/blk)]\n", MILLI * (nTime8 - nTime5), nTimeCallbacks * MICRO, nTimeCallbacks * MILLI / nBlocksTotal);
2574-
2575-
::g_stats_client->timing("ConnectBlock_ms", (nTime8 - nTimeStart) / 1000, 1.0f);
2571+
::g_stats_client->timing("ConnectBlock_ms", (nTime7 - nTimeStart) / 1000, 1.0f);
25762572

25772573
TRACE6(validation, block_connected,
25782574
block_hash.data(),
25792575
pindex->nHeight,
25802576
block.vtx.size(),
25812577
nInputs,
25822578
nSigOps,
2583-
nTime8 - nTimeStart // in microseconds (µs)
2579+
nTime7 - nTimeStart // in microseconds (µs)
25842580
);
25852581

25862582
return true;

0 commit comments

Comments
 (0)