(297 . 10)(297 . 6)
29 def gen_hash(cls, message_bytes):
30 return hashlib.sha256(message_bytes).digest()
31
32 def set_warning(self):
33 if self.timestamp < self.state.get_latest_message_timestamp():
34 self.warning = time.strftime("%Y-%m-%d %H:%M:%S: ", time.localtime(self.timestamp))
35
36 def get_message_bytes(self, peer=None):
37 command = self.command
38 speaker = Message._pad(self.speaker, MAX_SPEAKER_SIZE)