mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-13 11:09:14 +01:00
Rename FeatureBitsPlace
to FeatureBitsKind
This commit is contained in:
parent
870e25e180
commit
085960b054
1 changed files with 7 additions and 7 deletions
|
@ -222,12 +222,12 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets the "featurebits" in the "getmanifest" response
|
/// Sets the "featurebits" in the "getmanifest" response
|
||||||
pub fn featurebits(mut self, place: FeatureBitsPlace, hex: String) -> Self {
|
pub fn featurebits(mut self, kind: FeatureBitsKind, hex: String) -> Self {
|
||||||
match place {
|
match kind {
|
||||||
FeatureBitsPlace::Node => self.featurebits.node = Some(hex),
|
FeatureBitsKind::Node => self.featurebits.node = Some(hex),
|
||||||
FeatureBitsPlace::Channel => self.featurebits.channel = Some(hex),
|
FeatureBitsKind::Channel => self.featurebits.channel = Some(hex),
|
||||||
FeatureBitsPlace::Init => self.featurebits.init = Some(hex),
|
FeatureBitsKind::Init => self.featurebits.init = Some(hex),
|
||||||
FeatureBitsPlace::Invoice => self.featurebits.invoice = Some(hex),
|
FeatureBitsKind::Invoice => self.featurebits.invoice = Some(hex),
|
||||||
}
|
}
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
@ -788,7 +788,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum FeatureBitsPlace {
|
pub enum FeatureBitsKind {
|
||||||
Node,
|
Node,
|
||||||
Channel,
|
Channel,
|
||||||
Invoice,
|
Invoice,
|
||||||
|
|
Loading…
Add table
Reference in a new issue