]> git.bitcoin.ninja Git - dnsseed-rust/commitdiff
Update services properly on Good state
authorMatt Corallo <git@bluematt.me>
Mon, 20 May 2019 22:22:06 +0000 (18:22 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 20 May 2019 22:22:06 +0000 (18:22 -0400)
src/datastore.rs

index 0b0615c5b5353039b6cb3d38b78a94128f97e643..60a8527a6377f71aa793718a670b2487741bfd8b 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));
                }