@@ -601,11 +601,9 @@ bool CSpecialTxProcessor::ProcessSpecialTxsInBlock(const CBlock& block, const CB
601601 }
602602 }
603603
604- int64_t nTime5_1 = GetTimeMicros ();
605- nTimeDMN += nTime5_1 - nTime5;
606-
607- LogPrint (BCLog::BENCHMARK, " - m_dmnman: %.2fms [%.2fs]\n " , 0.001 * (nTime5_1 - nTime5),
608- nTimeDMN * 0.000001 );
604+ int64_t nTime6 = GetTimeMicros ();
605+ nTimeDMN += nTime6 - nTime5;
606+ LogPrint (BCLog::BENCHMARK, " - m_dmnman: %.2fms [%.2fs]\n " , 0.001 * (nTime6 - nTime5), nTimeDMN * 0.000001 );
609607
610608 if (opt_cbTx.has_value ()) {
611609 uint256 calculatedMerkleRoot;
@@ -617,46 +615,43 @@ bool CSpecialTxProcessor::ProcessSpecialTxsInBlock(const CBlock& block, const CB
617615 return state.Invalid (BlockValidationResult::BLOCK_CONSENSUS, " bad-cbtx-mnmerkleroot" );
618616 }
619617
620- int64_t nTime5_2 = GetTimeMicros ();
621- nTimeMerkleMNL += nTime5_2 - nTime5_1 ;
618+ int64_t nTime6_1 = GetTimeMicros ();
619+ nTimeMerkleMNL += nTime6_1 - nTime6 ;
622620 LogPrint (BCLog::BENCHMARK, " - CalcCbTxMerkleRootMNList: %.2fms [%.2fs]\n " ,
623- 0.001 * (nTime5_2 - nTime5_1), nTimeMerkleMNL * 0.000001 );
624- }
621+ 0.001 * (nTime6_1 - nTime6), nTimeMerkleMNL * 0.000001 );
625622
626- int64_t nTime6 = GetTimeMicros ();
627- if (opt_cbTx.has_value ()) {
628623 if (!CheckCbTxMerkleRoots (block, *opt_cbTx, pindex, m_qblockman, state)) {
629624 // pass the state returned by the function above
630625 return false ;
631626 }
632- }
633627
634- int64_t nTime7 = GetTimeMicros ();
635- nTimeMerkle += nTime7 - nTime6 ;
628+ int64_t nTime6_2 = GetTimeMicros ();
629+ nTimeMerkle += nTime6_2 - nTime6_1 ;
636630
637- LogPrint (BCLog::BENCHMARK, " - CheckCbTxMerkleRoots: %.2fms [%.2fs]\n " , 0.001 * (nTime7 - nTime6 ),
638- nTimeMerkle * 0.000001 );
631+ LogPrint (BCLog::BENCHMARK, " - CheckCbTxMerkleRoots: %.2fms [%.2fs]\n " , 0.001 * (nTime6_2 - nTime6_1 ),
632+ nTimeMerkle * 0.000001 );
639633
640- if (opt_cbTx.has_value ()) {
641634 if (!CheckCbTxBestChainlock (*opt_cbTx, pindex, m_clhandler, state)) {
642635 // pass the state returned by the function above
643636 return false ;
644637 }
638+
639+ int64_t nTime6_3 = GetTimeMicros ();
640+ nTimeCbTxCL += nTime6_3 - nTime6_2;
641+ LogPrint (BCLog::BENCHMARK, " - CheckCbTxBestChainlock: %.2fms [%.2fs]\n " ,
642+ 0.001 * (nTime6_3 - nTime6_2), nTimeCbTxCL * 0.000001 );
645643 }
646644
647- int64_t nTime8 = GetTimeMicros ();
648- nTimeCbTxCL += nTime8 - nTime7;
649- LogPrint (BCLog::BENCHMARK, " - CheckCbTxBestChainlock: %.2fms [%.2fs]\n " , 0.001 * (nTime8 - nTime7),
650- nTimeCbTxCL * 0.000001 );
645+ int64_t nTime7 = GetTimeMicros ();
651646
652647 if (!m_mnhfman.ProcessBlock (block, pindex, fJustCheck , state)) {
653648 // pass the state returned by the function above
654649 return false ;
655650 }
656651
657- int64_t nTime9 = GetTimeMicros ();
658- nTimeMnehf += nTime9 - nTime8 ;
659- LogPrint (BCLog::BENCHMARK, " - m_mnhfman: %.2fms [%.2fs]\n " , 0.001 * (nTime9 - nTime8 ), nTimeMnehf * 0.000001 );
652+ int64_t nTime8 = GetTimeMicros ();
653+ nTimeMnehf += nTime8 - nTime7 ;
654+ LogPrint (BCLog::BENCHMARK, " - m_mnhfman: %.2fms [%.2fs]\n " , 0.001 * (nTime8 - nTime7 ), nTimeMnehf * 0.000001 );
660655
661656 if (DeploymentActiveAfter (pindex, m_consensus_params, Consensus::DEPLOYMENT_V19) && bls::bls_legacy_scheme.load ()) {
662657 // NOTE: The block next to the activation is the one that is using new rules.
0 commit comments