get_announced_nodes function