Skip to content

Commit 3787398

Browse files
committed
Clarify supported features flags set
1 parent 1bc4bf5 commit 3787398

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lightning/src/ln/features.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,13 @@ impl InitFeatures {
8181
/// Create a Features with the features we support
8282
pub fn supported() -> InitFeatures {
8383
InitFeatures {
84-
flags: vec![2 | 1 << 5, 1 << (9-8) | 1 << (15 - 8), 1 << (17 - 8*2)],
84+
flags: vec![
85+
1 << 1 | // data_loss_protect supported
86+
1 << 5, // upfront_shutdown_script supported
87+
1 << (9 - 8*1) | // variable_length_onion supported
88+
1 << (15 - 8*1), // basic_mpp supportedyment_secret supported
89+
1 << (17 - 8*2) // basic_mpp supported
90+
],
8591
mark: PhantomData,
8692
}
8793
}

0 commit comments

Comments
 (0)