mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-15 16:38:23 +01:00
test: Add missing convert_to_json_for_cli
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/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
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
@@ -104,7 +104,7 @@ class ReorgsRestoreTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
# Disconnect tip and sync wallet state
|
# Disconnect tip and sync wallet state
|
||||||
tip = wallet.getbestblockhash()
|
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.invalidateblock(tip)
|
||||||
wallet.syncwithvalidationinterfacequeue()
|
wallet.syncwithvalidationinterfacequeue()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user