Skip to content

Commit 4f67336

Browse files
committed
test: verify best blockhash after invalidating an unknown block
1 parent b2215b3 commit 4f67336

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/functional/rpc_invalidateblock.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ def run_test(self):
8585
assert_equal(self.nodes[1].getbestblockhash(), blocks[-1])
8686

8787
self.log.info("Verify that invalidating an unknown block throws an error")
88-
chain_tips = self.nodes[1].getchaintips()
8988
assert_raises_rpc_error(-5, "Block not found", self.nodes[1].invalidateblock, "00" * 32)
90-
assert_equal(chain_tips, self.nodes[1].getchaintips())
89+
assert_equal(self.nodes[1].getbestblockhash(), blocks[-1])
9190

9291

9392
if __name__ == '__main__':

0 commit comments

Comments
 (0)