mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-31 10:41:08 +00:00
test: Fix list index out of range error in feature_bip68_sequence.py
This commit is contained in:
parent
1be688f575
commit
e285e691b7
@ -144,8 +144,10 @@ class BIP68Test(BitcoinTestFramework):
|
||||
# between height/time locking). Small random chance of making the locks
|
||||
# all pass.
|
||||
for _ in range(400):
|
||||
available_utxos = len(utxos)
|
||||
|
||||
# Randomly choose up to 10 inputs
|
||||
num_inputs = random.randint(1, 10)
|
||||
num_inputs = random.randint(1, min(10, available_utxos))
|
||||
random.shuffle(utxos)
|
||||
|
||||
# Track whether any sequence locks used should fail
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user