Skip to content

Commit 20f982e

Browse files
committed
validation: fix feature_fastprune test - fund MiniWallet with UTXO
MiniWallet needs at least one UTXO before create_self_transfer() can be called. Generate one block to fund the wallet before creating the large transaction. This fixes the StopIteration error in CI where wallet.get_utxo() had no UTXOs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent dc69d72 commit 20f982e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/functional/feature_fastprune.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def set_test_params(self):
2424
def run_test(self):
2525
self.log.info("ensure that large blocks don't crash or freeze in -fastprune")
2626
wallet = MiniWallet(self.nodes[0])
27+
# Generate a block to fund the wallet with a UTXO
28+
self.generate(wallet, 1)
2729

2830
# Create a single transaction with large OP_RETURN to make block >64kb
2931
# We need to create a transaction that's large enough to exceed the fastprune limit

0 commit comments

Comments
 (0)