def GetAcceptedFrontierFailed(self, validatorID: ShortID, requestID: int): return self.handle_message(Message( messageType=constants.GetAcceptedFrontierMsg, validatorID=validatorID, requestID=requestID, received=int(time.time()) ))
def QueryFailed(self, validatorID: ShortID, requestID: int): return self.handle_message(Message( messageType=constants.QueryFailedMsg, validatorID=validatorID, requestID=requestID, received=int(time.time()) ))
def Chits(self, validatorID: ShortID, requestID: int, votes: List[ID]): return self.handle_message( Message(messageType=constants.ChitsMsg, validatorID=validatorID, requestID=requestID, containers=votes, received=int(time.time())))
def MultiPut(self, validatorID: ShortID, requestID: int, containers: List[bytes]): return self.handle_message(Message( messageType=constants.MultiPutMsg, validatorID=validatorID, requestID=requestID, containers=containers, received=int(time.time()) ))
def Accepted(self, validatorID: ShortID, requestID: int, containerIDs: List[ID]): return self.handle_message(Message( messageType=constants.AcceptedMsg, validatorID=validatorID, requestID=requestID, containerIDs=containerIDs, received=int(time.time()) ))
def PullQuery(self, validatorID: ShortID, requestID: int, deadline: int, containerID: ID): return self.handle_message(Message( messageType=constants.PullQueryMsg, validatorID=validatorID, requestID=requestID, deadline=deadline, containerID=containerID, received=int(time.time()) ))
def Put(self, validatorID, requestID, containerID, container): return self.handle_message( Message(messageType=constants.PutMsg, validatorID=validatorID, requestID=requestID, containerID=containerID, container=container, received=int(time.time())))