mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
node/chainstate: Decouple from GetTimeMillis
...instead just move it out
This commit is contained in:
parent
cb64af9635
commit
cbac28b72f
2 changed files with 5 additions and 3 deletions
|
|
@ -1419,6 +1419,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
|||
|
||||
uiInterface.InitMessage(_("Loading block index…").translated);
|
||||
|
||||
const int64_t load_block_index_start_time = GetTimeMillis();
|
||||
bool rv = LoadChainstate(fLoaded,
|
||||
strLoadError,
|
||||
fReset,
|
||||
|
|
@ -1432,6 +1433,9 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
|||
nCoinDBCache,
|
||||
nCoinCacheUsage);
|
||||
if (!rv) return false;
|
||||
if (fLoaded) {
|
||||
LogPrintf(" block index %15dms\n", GetTimeMillis() - load_block_index_start_time);
|
||||
}
|
||||
|
||||
if (!fLoaded && !ShutdownRequested()) {
|
||||
// first suggest a reindex
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue