MCPcopy Create free account
hub / github.com/ElementsProject/lightning / featurebits

Method featurebits

plugins/src/lib.rs:320–328  ·  view source on GitHub ↗

Sets the "featurebits" in the "getmanifest" response

(mut self, kind: FeatureBitsKind, hex: String)

Source from the content-addressed store, hash-verified

318
319 /// Sets the "featurebits" in the "getmanifest" response
320 pub fn featurebits(mut self, kind: FeatureBitsKind, hex: String) -> Self {
321 match kind {
322 FeatureBitsKind::Node => self.featurebits.node = Some(hex),
323 FeatureBitsKind::Channel => self.featurebits.channel = Some(hex),
324 FeatureBitsKind::Init => self.featurebits.init = Some(hex),
325 FeatureBitsKind::Invoice => self.featurebits.invoice = Some(hex),
326 }
327 self
328 }
329
330 /// Should the plugin automatically register a logging handler? If
331 /// not you may need to register a logging handler yourself. Be

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected