From e685b4eca250a47e933c8447a2efe10cd14d2f2b Mon Sep 17 00:00:00 2001 From: Ava Chow Date: Sun, 18 May 2025 11:55:18 -0700 Subject: [PATCH] test: Check that the correct versions are logged on wallet load Github-Pull: #32553 Rebased-From: 39a483c8e9dcfe8ec243fa72269e1df9e75059ab --- test/functional/wallet_createwallet.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/functional/wallet_createwallet.py b/test/functional/wallet_createwallet.py index 0232af1658f..1f74809ae98 100755 --- a/test/functional/wallet_createwallet.py +++ b/test/functional/wallet_createwallet.py @@ -188,6 +188,18 @@ class CreateWalletTest(BitcoinTestFramework): "warnings": [EMPTY_PASSPHRASE_MSG, LEGACY_WALLET_MSG], }) + self.log.info("Check that the version number is being logged correctly") + node.createwallet("version_check") + wallet = node.get_wallet_rpc("version_check") + wallet_version = wallet.getwalletinfo()["walletversion"] + client_version = node.getnetworkinfo()["version"] + wallet.unloadwallet() + with node.assert_debug_log( + expected_msgs=[f"Last client version = {client_version}", f"Wallet file version = {wallet_version}"], + unexpected_msgs=["Wallet file version = 10500"] + ): + node.loadwallet("version_check") + if __name__ == '__main__': CreateWalletTest(__file__).main()