diff options
author | Carl Dong <contact@carldong.me> | 2021-09-20 17:08:18 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-12-06 15:55:49 -0500 |
commit | cbac28b72f5b831f6f84b7628f73e85627af3d94 (patch) | |
tree | daa3ea28ebb0b5be33c636c61eadb82ebc11dda9 /src/node/chainstate.cpp | |
parent | cb64af9635a9553e335f2dc0b1cca20c6bbd0933 (diff) |
node/chainstate: Decouple from GetTimeMillis
...instead just move it out
Diffstat (limited to 'src/node/chainstate.cpp')
-rw-r--r-- | src/node/chainstate.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/node/chainstate.cpp b/src/node/chainstate.cpp index b7a92d412a..3da61c95b8 100644 --- a/src/node/chainstate.cpp +++ b/src/node/chainstate.cpp @@ -6,7 +6,7 @@ #include <chainparams.h> // for CChainParams #include <rpc/blockchain.h> // for RPCNotifyBlockChange -#include <util/time.h> // for GetTime, GetTimeMillis +#include <util/time.h> // for GetTime #include <util/translation.h> // for bilingual_str #include <node/blockstorage.h> // for CleanupBlockRevFiles, fHavePruned, fReindex #include <node/context.h> // for NodeContext @@ -31,7 +31,6 @@ bool LoadChainstate(bool& fLoaded, }; do { - const int64_t load_block_index_start_time = GetTimeMillis(); try { LOCK(cs_main); chainman.InitializeChainstate(Assert(node.mempool.get())); @@ -197,7 +196,6 @@ bool LoadChainstate(bool& fLoaded, if (!failed_verification) { fLoaded = true; - LogPrintf(" block index %15dms\n", GetTimeMillis() - load_block_index_start_time); } } while(false); return true; |