Skip to content

Commit e673125

Browse files
committed
Builder for creating offers
Add a builder for creating offers given a required description and node_id. Other settings are optional and duplicative settings will override previous settings for non-Vec fields.
1 parent 904d322 commit e673125

File tree

5 files changed

+573
-15
lines changed

5 files changed

+573
-15
lines changed

lightning/src/ln/features.rs

+9
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,15 @@ impl<T: sealed::Wumbo> Features<T> {
687687
}
688688
}
689689

690+
#[cfg(test)]
691+
impl<T: sealed::UnknownFeature> Features<T> {
692+
pub(crate) fn unknown() -> Self {
693+
let mut features = Self::empty();
694+
features.set_unknown_feature_required();
695+
features
696+
}
697+
}
698+
690699
macro_rules! impl_feature_len_prefixed_write {
691700
($features: ident) => {
692701
impl Writeable for $features {

0 commit comments

Comments
 (0)