From fa0528479d5e37833fa66395c94d4611aa9270f6 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Thu, 10 Jul 2025 11:03:07 +0200 Subject: [PATCH] test: Add missing convert_to_json_for_cli --- test/functional/wallet_reorgsrestore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/wallet_reorgsrestore.py b/test/functional/wallet_reorgsrestore.py index d51ee810376..c8dc24cbe92 100755 --- a/test/functional/wallet_reorgsrestore.py +++ b/test/functional/wallet_reorgsrestore.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -# Copyright (c) 2019-2022 The Bitcoin Core developers +# Copyright (c) 2019-present The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -104,7 +104,7 @@ class ReorgsRestoreTest(BitcoinTestFramework): # Disconnect tip and sync wallet state tip = wallet.getbestblockhash() - tip_height = wallet.getblockstats(tip)["height"] + tip_height = wallet.getblockstats(hash_or_height=self.convert_to_json_for_cli(tip))["height"] wallet.invalidateblock(tip) wallet.syncwithvalidationinterfacequeue()