return future::err(());
}
if ver.services & (1 | (1 << 10)) == 0 {
- printer.add_line(format!("Updating {} to NotFullNode (services {:x})", node, ver.services), true);
+ printer.add_line(format!("Updating {} to NotFullNode ({}: services {:x})", node, ver.user_agent, ver.services), true);
state_lock.fail_reason = AddressState::NotFullNode;
return future::err(());
}
if let Err(_) = write.try_send(NetworkMessage::GetAddr) {
return future::err(());
}
- if let Err(_) = write.try_send(NetworkMessage::GetData(vec![Inventory {
- inv_type: InvType::WitnessBlock,
- hash: state_lock.request.1,
- }])) {
- return future::err(());
- }
},
NetworkMessage::Ping(v) => {
if let Err(_) = write.try_send(NetworkMessage::Pong(v)) {
state_lock.recvd_addrs = false;
return future::err(());
}
+ if let Err(_) = write.try_send(NetworkMessage::GetData(vec![Inventory {
+ inv_type: InvType::WitnessBlock,
+ hash: state_lock.request.1,
+ }])) {
+ return future::err(());
+ }
state_lock.recvd_addrs = true;
unsafe { DATA_STORE.as_ref().unwrap() }.add_fresh_nodes(&addrs);
},