We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4f6b1 commit fabed7eCopy full SHA for fabed7e
src/test/util/index.cpp
@@ -5,14 +5,11 @@
5
#include <test/util/index.h>
6
7
#include <index/base.h>
8
-#include <util/check.h>
9
#include <util/time.h>
10
11
-void IndexWaitSynced(BaseIndex& index)
+void IndexWaitSynced(const BaseIndex& index)
12
{
13
- const auto timeout{SteadyClock::now() + 120s};
14
while (!index.BlockUntilSyncedToCurrentChain()) {
15
- Assert(timeout > SteadyClock::now());
16
UninterruptibleSleep(100ms);
17
}
18
src/test/util/index.h
@@ -8,6 +8,6 @@
class BaseIndex;
/** Block until the index is synced to the current chain */
-void IndexWaitSynced(BaseIndex& index);
+void IndexWaitSynced(const BaseIndex& index);
#endif // BITCOIN_TEST_UTIL_INDEX_H
0 commit comments