projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c1fc45
)
Unset the optional bit for a feature when setting the required bit
author
Matt Corallo
<git@bluematt.me>
Tue, 21 Dec 2021 05:23:51 +0000
(
05:23
+0000)
committer
Matt Corallo
<git@bluematt.me>
Wed, 26 Jan 2022 19:08:58 +0000
(19:08 +0000)
There is no reason to set both, and this currently makes testing
the new BOLT invoice tests slightly harder, so we just unset it.
lightning/src/ln/features.rs
patch
|
blob
|
history
diff --git
a/lightning/src/ln/features.rs
b/lightning/src/ln/features.rs
index a5440650dd4a378ba08ed0df791efe210fd83cdc..e4018ad4131ff01faef18f2e2e64fb1cf6a73622 100644
(file)
--- a/
lightning/src/ln/features.rs
+++ b/
lightning/src/ln/features.rs
@@
-308,6
+308,7
@@
mod sealed {
}
flags[Self::BYTE_OFFSET] |= Self::REQUIRED_MASK;
+ flags[Self::BYTE_OFFSET] &= !Self::OPTIONAL_MASK;
}
/// Sets the feature's optional (odd) bit in the given flags.