def clear_block_announcement(self):
    with mininode_lock:
        self.block_announced = False
        self.last_message.pop('inv', None)
        self.last_message.pop('headers', None)
        self.last_message.pop('cmpctblock', None)
def clear_block_announcement(self):
    with mininode_lock:
        self.block_announced = False
        self.last_message.pop('inv', None)
        self.last_message.pop('headers', None)
        self.last_message.pop('cmpctblock', None)