We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e44d72b commit d235d5bCopy full SHA for d235d5b
test/functional/feature_bip68_sequence.py
@@ -148,8 +148,10 @@ def test_sequence_lock_confirmed_inputs(self):
148
# between height/time locking). Small random chance of making the locks
149
# all pass.
150
for _ in range(400):
151
+ available_utxos = len(utxos)
152
+
153
# Randomly choose up to 10 inputs
- num_inputs = random.randint(1, 10)
154
+ num_inputs = random.randint(1, min(10, available_utxos))
155
random.shuffle(utxos)
156
157
# Track whether any sequence locks used should fail
0 commit comments