mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 18:09:47 +01:00
test: verify best blockhash after invalidating an unknown block
This commit is contained in:
parent
b2215b316d
commit
4f67336f11
@ -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__':
|
||||
|
Loading…
Reference in New Issue
Block a user