test: Fix "typo" in written invalid content
What changed, and why it matters
This is a one-word change in a test file. A developer fixed a misspelled string ('invald wallet' to 'invalid_wallet_content') used only to create intentionally corrupted wallet data for a test. It has no effect on the actual Bitcoin Core software that users run.
No action needed. This is a non-security test-only cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies test/functional/wallet_backup.py, changing the literal string written to an invalid wallet fixture file. The string is appended to a file used in restore_invalid_wallet() to verify that Bitcoin Core rejects malformed wallet backups. The change is cosmetic: it corrects a typo and switches quote style. No production code, no wallet logic, and no consensus or networking code is touched.
Changed components
test/functional/wallet_backup.pyInspect captured patch +1 / −1
diff --git a/test/functional/wallet_backup.py b/test/functional/wallet_backup.py
index 3dc31590..c658af26 100755
--- a/test/functional/wallet_backup.py
+++ b/test/functional/wallet_backup.py
@@ -112,7 +112,7 @@ class WalletBackupTest(BitcoinTestFramework):
def restore_invalid_wallet(self):
node = self.nodes[3]
invalid_wallet_file = self.nodes[0].datadir_path / 'invalid_wallet_file.bak'
- open(invalid_wallet_file, 'a').write('invald wallet')
+ open(invalid_wallet_file, "a").write("invalid_wallet_content")
wallet_name = "res0"
not_created_wallet_file = node.wallets_path / wallet_name
error_message = "Wallet file verification failed. Failed to load database path '{}'. Data is not in recognized format.".format(not_created_wallet_file)
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.