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
Windows Python: Intermittent issue in p2p_unrequested_blocks.py", line 98, in run_test test_node.send_and_ping(msg_block(blocks_h2[0])) assert self.is_connected AssertionError / AcceptBlock FAILED (time-too-old, block's timestamp is too early) #29897
changed the title [-]Intermittent issue in p2p_unrequested_blocks.py", line 98, in run_test test_node.send_and_ping(msg_block(blocks_h2[0])) assert self.is_connected AssertionError / AcceptBlock FAILED (time-too-old, block's timestamp is too early) [/-][+]Windows Python: Intermittent issue in p2p_unrequested_blocks.py", line 98, in run_test test_node.send_and_ping(msg_block(blocks_h2[0])) assert self.is_connected AssertionError / AcceptBlock FAILED (time-too-old, block's timestamp is too early) [/+]on Apr 18, 2024
Activity
maflcko commentedon Apr 18, 2024
This is the known bug on Windows Python, where the
time.time()returned is just wrong. See #25482 (comment)maflcko commentedon Apr 18, 2024
CI log excerpt
[-]Intermittent issue in p2p_unrequested_blocks.py", line 98, in run_test test_node.send_and_ping(msg_block(blocks_h2[0])) assert self.is_connected AssertionError / AcceptBlock FAILED (time-too-old, block's timestamp is too early) [/-][+]Windows Python: Intermittent issue in p2p_unrequested_blocks.py", line 98, in run_test test_node.send_and_ping(msg_block(blocks_h2[0])) assert self.is_connected AssertionError / AcceptBlock FAILED (time-too-old, block's timestamp is too early) [/+]maflcko commentedon Jul 31, 2024
Still an issue as of #29897 (reference)
hodlinator commentedon Oct 22, 2024
Encountered here: https://github.com/hodlinator/bitcoin/actions/runs/11460619753/job/31887736863#step:12:590
(Still running on a base of 84cd647 from 16 September though).
maflcko commentedon Jun 4, 2025
According to python/cpython@1d95451 the precision on Windows of
time.time()was only 15.6 ms! This was fixed in python3.13, which is available on GHA runners for a few months now: actions/runner-images@c8b6f67#diff-d3119a278ce9ce80fc4b5af63a1112fb3a044aec3e6002d838e8eb26d7a3a499R60(For reference the MS STL commit that dropped support for windows 7 is microsoft/STL@0be5257#diff-3f2f29a66efe07e14bfcb74e46fe3df40c64a9c82e1b3bbe35cbdf1adde7be2dR643 [17.12] and our minimum was bumped in fa2c662 to 17.13)
So I guess this can be closed as fixed by simply requiring python3.13 on Windows.
ci: [refactor] Add .github/ci-windows.py build step
ci: Move run_functional_tests into ci-windows-cross.py
ci: [refactor] Add .github/ci-windows.py build step
ci: Move run_functional_tests into ci-windows-cross.py