Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 5,682 Lines • ▼ Show 20 Lines | try { | ||||
LogPrintf("Dumped mempool: %gs to copy, %gs to dump\n", | LogPrintf("Dumped mempool: %gs to copy, %gs to dump\n", | ||||
(mid - start) * MICRO, (last - mid) * MICRO); | (mid - start) * MICRO, (last - mid) * MICRO); | ||||
} catch (const std::exception &e) { | } catch (const std::exception &e) { | ||||
LogPrintf("Failed to dump mempool: %s. Continuing anyway.\n", e.what()); | LogPrintf("Failed to dump mempool: %s. Continuing anyway.\n", e.what()); | ||||
} | } | ||||
} | } | ||||
//! Guess how far we are in the verification process at the given block index | //! Guess how far we are in the verification process at the given block index | ||||
double GuessVerificationProgress(const ChainTxData &data, CBlockIndex *pindex) { | double GuessVerificationProgress(const ChainTxData &data, | ||||
const CBlockIndex *pindex) { | |||||
if (pindex == nullptr) { | if (pindex == nullptr) { | ||||
return 0.0; | return 0.0; | ||||
} | } | ||||
int64_t nNow = time(nullptr); | int64_t nNow = time(nullptr); | ||||
double fTxTotal; | double fTxTotal; | ||||
if (pindex->nChainTx <= data.nTxCount) { | if (pindex->nChainTx <= data.nTxCount) { | ||||
Show All 21 Lines |