def METHOD_NAME(self, root, height):
    leaf = self.node_for_block(height - 1)
    root = append(root, leaf)
    assert_equal(
        self.nodes[0].getblock(str(height))["chainhistoryroot"],
        bytes_to_hex_str(make_root_commitment(root)[::-1]))
    return root