We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents caf0daa + 1d810a5 commit e5e700cCopy full SHA for e5e700c
lightning-types/src/features.rs
@@ -911,7 +911,7 @@ impl<T: sealed::Context> Features<T> {
911
}
912
913
/// Returns the set of required features unknown by `other`, as their bit position.
914
- pub fn required_unknown_bits_from(&self, other: &Self) -> Vec<usize> {
+ pub fn required_unknown_bits_from(&self, other: &Self) -> Vec<u64> {
915
let mut unknown_bits = Vec::new();
916
917
// Bitwise AND-ing with all even bits set except for known features will select required
@@ -921,7 +921,7 @@ impl<T: sealed::Context> Features<T> {
921
if byte & unknown_features != 0 {
922
for bit in (0..8).step_by(2) {
923
if ((byte & unknown_features) >> bit) & 1 == 1 {
924
- unknown_bits.push(i * 8 + bit);
+ unknown_bits.push((i as u64) * 8 + bit);
925
926
927
0 commit comments