def METHOD_NAME(self, node, height):
    """Wait until the blockchain is no longer advancing and verify it's reached the expected height."""
    last_height = node.getblock(node.getbestblockhash())["height"]
    timeout = 10
    while True:
        time.sleep(0.25)
        timeout -= 0.25
        current_height = node.getblock(node.getbestblockhash())["height"]
        if timeout < 0:
            assert False, "blockchain too short after timeout: %d" % current_height
        if current_height != last_height:
            last_height = current_height
            continue
        elif current_height > height:
            assert False, "blockchain too long: %d" % current_height
        elif current_height == height:
            break