From 4f67336f1105b7c34a9e8cdafa603edc1d899fb9 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Fri, 9 Sep 2022 13:10:07 -0300 Subject: [PATCH] test: verify best blockhash after invalidating an unknown block --- test/functional/rpc_invalidateblock.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/functional/rpc_invalidateblock.py b/test/functional/rpc_invalidateblock.py index 705fa6c7363..1e33e7ca9ce 100755 --- a/test/functional/rpc_invalidateblock.py +++ b/test/functional/rpc_invalidateblock.py @@ -85,9 +85,8 @@ class InvalidateTest(BitcoinTestFramework): assert_equal(self.nodes[1].getbestblockhash(), blocks[-1]) self.log.info("Verify that invalidating an unknown block throws an error") - chain_tips = self.nodes[1].getchaintips() assert_raises_rpc_error(-5, "Block not found", self.nodes[1].invalidateblock, "00" * 32) - assert_equal(chain_tips, self.nodes[1].getchaintips()) + assert_equal(self.nodes[1].getbestblockhash(), blocks[-1]) if __name__ == '__main__':