def serialize(self):
    r = b''
    r += struct.pack('<I', self.type)
    r += ser_uint256(self.hash)
    return r
def serialize(self):
    r = b
    r += struct.pack('<I', self.type)
    r += ser_uint256(self.hash)
    return r