def on_cmpctblock(self, conn, message):
    self.block_announced = True
    self.last_message['cmpctblock'].header_and_shortids.header.calc_sha256()
    self.announced_blockhashes.add(self.last_message['cmpctblock'].header_and_shortids.header.sha256)
def on_cmpctblock(self, conn, message):
    self.block_announced = True
    self.last_message['cmpctblock'].header_and_shortids.header.calc_sha256()
    self.announced_blockhashes.add(self.last_message['cmpctblock'].header_and_shortids.header.sha256)