test: Add missing convert_to_json_for_cli

This commit is contained in:
MarcoFalke
2025-07-10 11:03:07 +02:00
parent a40e953658
commit fa0528479d

View File

@@ -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()