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