@classmethod
def get_merkle_root(cls, hashes):
    while (len(hashes) > 1):
        newhashes = []
        for i in range(0, len(hashes), 2):
            i2 = min((i + 1), (len(hashes) - 1))
            newhashes.append(hash256((hashes[i] + hashes[i2])))
        hashes = newhashes
    return uint256_from_str(hashes[0])
@classmethod
def get_merkle_root(cls, hashes):
    while (len(hashes) > 1):
        newhashes = []
        for i in range(0, len(hashes), 2):
            i2 = min((i + 1), (len(hashes) - 1))
            newhashes.append(hash256((hashes[i] + hashes[i2])))
        hashes = newhashes
    return uint256_from_str(hashes[0])