We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be688f commit e285e69Copy full SHA for e285e69
test/functional/feature_bip68_sequence.py
@@ -144,8 +144,10 @@ def test_sequence_lock_confirmed_inputs(self):
144
# between height/time locking). Small random chance of making the locks
145
# all pass.
146
for _ in range(400):
147
+ available_utxos = len(utxos)
148
+
149
# Randomly choose up to 10 inputs
- num_inputs = random.randint(1, 10)
150
+ num_inputs = random.randint(1, min(10, available_utxos))
151
random.shuffle(utxos)
152
153
# Track whether any sequence locks used should fail
0 commit comments