The test has many issues:
- It fails intermittently, due to the use of
-stopatheight(https://github.com/bitcoin/bitcoin/issues/33635) - Using
-stopatheightis expensive, because it requires two restarts, making the test slow
Fix all issues by using dumb_sync_blocks and avoid the two restarts.
Fixes #33635
Diff to test:
0diff --git a/src/util/tokenpipe.cpp b/src/util/tokenpipe.cpp
1index c982fa6fc4..1dc12ea1d5 100644
2--- a/src/util/tokenpipe.cpp
3+++ b/src/util/tokenpipe.cpp
4@@ -4,2 +4,3 @@
5 #include <util/tokenpipe.h>
6+#include <util/time.h>
7
8@@ -60,2 +61,3 @@ int TokenPipeEnd::TokenRead()
9 ssize_t result = read(m_fd, &token, 1);
10+ UninterruptibleSleep(999ms);
11 if (result < 0) {
On master: Test fails On this pull: Test passes