Skip to content

Commit fa05284

Browse files
author
MarcoFalke
committed
test: Add missing convert_to_json_for_cli
1 parent a40e953 commit fa05284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/wallet_reorgsrestore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) 2019-2022 The Bitcoin Core developers
2+
# Copyright (c) 2019-present The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

@@ -104,7 +104,7 @@ def test_reorg_handling_during_unclean_shutdown(self):
104104

105105
# Disconnect tip and sync wallet state
106106
tip = wallet.getbestblockhash()
107-
tip_height = wallet.getblockstats(tip)["height"]
107+
tip_height = wallet.getblockstats(hash_or_height=self.convert_to_json_for_cli(tip))["height"]
108108
wallet.invalidateblock(tip)
109109
wallet.syncwithvalidationinterfacequeue()
110110

0 commit comments

Comments
 (0)