Skip to content

Intermittent issue in feature_bip68_sequence.py: in test_sequence_lock_confirmed_inputs num_inputs = random.randint(1, min(10, available_utxos)): ValueError: empty range in randint(1, 0) #34205

Closed

Description

@maflcko

https://github.com/bitcoin/bitcoin/actions/runs/20722345957/job/59492260670?pr=34188#step:14:34425:

...
 node0 2026-01-05T18:28:42.795754Z [httpworker.1] [D:\a\bitcoin\bitcoin\src\rpc\request.cpp:243] [parse] [rpc] ThreadRPCServer method=getblockchaininfo user=__cookie__ 
 node0 2026-01-05T18:28:42.796627Z [http] [D:\a\bitcoin\bitcoin\src\httpserver.cpp:307] [http_request_cb] [http] Received a POST request for / from 127.0.0.1:59122 
 node0 2026-01-05T18:28:42.796705Z [httpworker.0] [D:\a\bitcoin\bitcoin\src\rpc\request.cpp:243] [parse] [rpc] ThreadRPCServer method=getrawtransaction user=__cookie__ 
 node0 2026-01-05T18:28:42.797538Z [http] [D:\a\bitcoin\bitcoin\src\httpserver.cpp:307] [http_request_cb] [http] Received a POST request for / from 127.0.0.1:59122 
 node0 2026-01-05T18:28:42.797608Z [httpworker.1] [D:\a\bitcoin\bitcoin\src\rpc\request.cpp:243] [parse] [rpc] ThreadRPCServer method=getblockchaininfo user=__cookie__ 
 node0 2026-01-05T18:28:42.798538Z [http] [D:\a\bitcoin\bitcoin\src\httpserver.cpp:307] [http_request_cb] [http] Received a POST request for / from 127.0.0.1:59122 
 node0 2026-01-05T18:28:42.798612Z [httpworker.1] [D:\a\bitcoin\bitcoin\src\rpc\request.cpp:243] [parse] [rpc] ThreadRPCServer method=getblockchaininfo user=__cookie__ 
 test  2026-01-05T18:28:42.799132Z TestFramework (ERROR): Unexpected exception 
                                   Traceback (most recent call last):
                                     File "D:\a\bitcoin\bitcoin\build\test\functional\test_framework\test_framework.py", line 142, in main
                                       self.run_test()
                                       ~~~~~~~~~~~~~^^
                                     File "D:\a\bitcoin\bitcoin\build\test\functional\feature_bip68_sequence.py", line 66, in run_test
                                       self.test_sequence_lock_confirmed_inputs()
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                                     File "D:\a\bitcoin\bitcoin\build\test\functional\feature_bip68_sequence.py", line 149, in test_sequence_lock_confirmed_inputs
                                       num_inputs = random.randint(1, min(10, available_utxos))
                                     File "C:\hostedtoolcache\windows\Python\3.14.2\x64\Lib\random.py", line 341, in randint
                                       raise ValueError(f"empty range in randint({a}, {b})")
                                   ValueError: empty range in randint(1, 0)

Activity

  1. deleted a comment from on Jan 9, 2026
  2. fjahr commented on Jan 9, 2026

    @fjahr
    Contributor

    I have looked and this and suggest a fix here: #34244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions