You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: feature_bip68_sequence.py can time out a block download by advancing mocktime with a block in flight #430
feature_bip68_sequence.py failed once because node1 disconnected node0 with "Timeout downloading block". The test advances mocktime by 600 s on every node without waiting for the previous block to arrive, and qbit's block download timeout is one minute.
Observed
Job 127046266399, "Windows native, VS 2022", PR run 41966967448 at 767563fb7f, 2026-11-05. The test failed in sync_blocks with AssertionError at assert (all([len(x.getpeerinfo()) for x in rpc_connections])).
test_sequence_lock_unconfirmed_inputs (test/functional/feature_bip68_sequence.py:275-279) runs ten times:
The timeout is max(nPowTargetSpacing, 1min) * (BLOCK_DOWNLOAD_TIMEOUT_BASE + …) (src/net_processing.cpp:6555). With qbit's 60 s spacing that is 60 s for a single peer, so one 600 s bump with a block in flight exceeds it.
Impact
An intermittent failure of a required job on unrelated changes. One occurrence so far.
Suggested fix
Wait for every node to have the tip before each setmocktime in that loop (self.sync_blocks()), so no block is in flight when mocktime moves. Other functional tests that bump mocktime by a minute or more right after an unsynced generate may have the same hazard and are worth a search.
Found while triaging failed CI jobs on 1.x.x (2026-11-13). Code references are to 1.x.x at a7a70660ad.
Activity
test: sync blocks before moving mocktime forward in feature_bip68_seq…
kiwidream commentedon Nov 16, 2026
Fixed on
1.x.xby #431, merged as 0a00d44. Closing by hand because1.x.xis not the default branch.