mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
test: Use mockable time in GuessVerificationProgress
Also add a test.
This commit is contained in:
@@ -5572,7 +5572,7 @@ double ChainstateManager::GuessVerificationProgress(const CBlockIndex* pindex) c
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
int64_t nNow = time(nullptr);
|
||||
const int64_t nNow{TicksSinceEpoch<std::chrono::seconds>(NodeClock::now())};
|
||||
|
||||
double fTxTotal;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user