aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-09-09 13:10:07 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-09-09 13:49:54 -0300
commit4f67336f1105b7c34a9e8cdafa603edc1d899fb9 (patch)
tree9b0a4d7eb4c58ccc705ce456e48919072d4af07d /test
parentb2215b316de70dd40a29fb3731ad8437c6a12673 (diff)
test: verify best blockhash after invalidating an unknown block
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/rpc_invalidateblock.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/rpc_invalidateblock.py b/test/functional/rpc_invalidateblock.py
index 705fa6c736..1e33e7ca9c 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__':