[dependencies]
lightning = { version = "0.0.124", path = "../lightning", default-features = false }
+lightning-types = { version = "0.1", path = "../lightning-types", default-features = false }
dnssec-prover = { version = "0.6", default-features = false, features = [ "std", "tokio" ] }
tokio = { version = "1.0", default-features = false, features = ["rt"] }
MessageSendInstructions, Responder, ResponseInstruction,
};
+use lightning_types::features::NodeFeatures;
+
use tokio::runtime::Handle;
#[cfg(not(any(target_pointer_width = "32", target_pointer_width = "64")))]
None
}
+ fn provided_node_features(&self) -> NodeFeatures {
+ let mut features = NodeFeatures::empty();
+ features.set_dns_resolution_optional();
+ features
+ }
+
fn release_pending_messages(&self) -> Vec<(DNSResolverMessage, MessageSendInstructions)> {
core::mem::take(&mut *self.state.pending_replies.lock().unwrap())
}