test: Rename wallet name in restore attempt in wallet_assumeutxo
What changed, and why it matters
This is a tiny test-only change that renames a wallet used in a single functional test to avoid intermittent failures on Windows. It does not change any production code, network behavior, or wallet security logic.
No security action needed; this is a test reliability fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit changes one argument in test/functional/wallet_assumeutxo.py from “w2” to “w2_pruneheight” in a restorewallet RPC call that is expected to fail. The stated purpose is to avoid Windows test flakiness caused by a leftover wallet directory from a previous test case not yet being cleaned up. The diff contains no production code modifications.
Changed components
test/functional/wallet_assumeutxo.pyInspect captured patch +1 / −1
diff --git a/test/functional/wallet_assumeutxo.py b/test/functional/wallet_assumeutxo.py
index e2991ffb..aeafa41c 100755
--- a/test/functional/wallet_assumeutxo.py
+++ b/test/functional/wallet_assumeutxo.py
@@ -96,7 +96,7 @@ class AssumeutxoTest(BitcoinTestFramework):
assert_equal(n3.pruneblockchain(FINAL_HEIGHT), 298) # 298 is the height of the last block pruned (pruneheight 299)
error_message = "Wallet loading failed. Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of a pruned node)"
# This backup (backup_w2.dat) was created at height 199, so it can't be restored in a node with a pruneheight of 299
- assert_raises_rpc_error(-4, error_message, n3.restorewallet, "w2", "backup_w2.dat")
+ assert_raises_rpc_error(-4, error_message, n3.restorewallet, "w2_pruneheight", "backup_w2.dat")
self.log.info("Ensuring wallet can be restored from a backup that was created at the pruneheight (pruned node)")
# This backup (backup_w.dat) was created at height 299, so it can be restored in a node with a pruneheight of 299
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.