Allow NODE_NETWORK_LIMITED for full node consideration
authorMatt Corallo <git@bluematt.me>
Mon, 20 May 2019 22:35:42 +0000 (18:35 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 20 May 2019 22:35:42 +0000 (18:35 -0400)
src/main.rs

index bdb8aa1d81bc2f95b908680cfe10413c3f3fc90d..dd87140e7fe39ce471687202a1e61229f3e4deb0 100644 (file)
@@ -101,7 +101,7 @@ pub fn scan_node(scan_time: Instant, node: SocketAddr) {
                                                state_lock.fail_reason = AddressState::LowVersion;
                                                return future::err(());
                                        }
-                                       if ver.services & 1 != 1 {
+                                       if ver.services & (1 | (1 << 10)) == 0 {
                                                printer.add_line(format!("Updating {} to NotFullNode (services {:x})", node, ver.services), true);
                                                state_lock.fail_reason = AddressState::NotFullNode;
                                                return future::err(());