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

Method __init__

tools/generate-wire.py:380–390  ·  view source on GitHub ↗
(self, name, number, option=[], enum_prefix='wire',
                 struct_prefix=None, comments=[])

Source from the content-addressed store, hash-verified

378
379class Message(FieldSet):
380 def __init__(self, name, number, option=[], enum_prefix='wire',
381 struct_prefix=None, comments=[]):
382 FieldSet.__init__(self)
383 self.name = name
384 self.number = number
385 self.enum_prefix = enum_prefix
386 self.option = option[0] if len(option) else None
387 self.struct_prefix = struct_prefix
388 self.enumname = None
389 self.msg_comments = comments
390 self.if_token = None
391
392 def has_option(self):
393 return self.option is not None

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected