Fix dnsseed hostname
[dnsseed-rust] / src / datastore.rs
index 6527942d15856b3a9ee8e564219971c35e283e57..309d361fbb70517daf5159ae7d6c5958bfcc9c2c 100644 (file)
@@ -291,6 +291,7 @@ impl Store {
                                                nodes.good_node_services.get_mut(&i).unwrap().remove(&addr);
                                        }
                                }
+                               state_ref.last_services = services;
                        }
                        nodes.state_next_scan.get_mut(&state).unwrap().push((state_ref.last_update, addr));
                }
@@ -363,7 +364,7 @@ impl Store {
                        {
                                let nodes = self.nodes.read().unwrap();
                                let mut rng = thread_rng();
-                               for i in 1u64..10u64 {
+                               for i in &[1u64, 4, 5, 8, 9, 12, 13, 1024, 1025, 1028, 1029, 1032, 1033, 1036, 1037] {
                                        let mut v6_set = Vec::new();
                                        let mut v4_set = Vec::new();
                                        if i.count_ones() == 1 {
@@ -420,10 +421,10 @@ impl Store {
                                                        .choose_multiple(&mut rng, 12).iter().map(|e| e.ip()).collect();
                                        }
                                        for a in v4_set {
-                                               dns_buff += &format!("x{:x}.dnsseed.bluematt.me\tIN\tA\t{}\n", i, a);
+                                               dns_buff += &format!("x{:x}.dnsseed\tIN\tA\t{}\n", i, a);
                                        }
                                        for a in v6_set {
-                                               dns_buff += &format!("x{:x}.dnsseed.bluematt.me\tIN\tAAAA\t{}\n", i, a);
+                                               dns_buff += &format!("x{:x}.dnsseed\tIN\tAAAA\t{}\n", i, a);
                                        }
                                }
                        }