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

Method start

tests/fixtures.py:129–145  ·  view source on GitHub ↗
(self, port)

Source from the content-addressed store, hash-verified

127 self.port = None
128
129 def start(self, port):
130 assert self.proc is None, "capture already started"
131 self.port = int(port)
132
133 self.proc = subprocess.Popen(
134 [
135 "dumpcap",
136 "-i", "lo",
137 "-w", str(self.pcap),
138 "-f", f"tcp port {self.port}",
139 ],
140 stdout=subprocess.DEVNULL,
141 stderr=subprocess.DEVNULL,
142 )
143
144 # allow filter attach
145 time.sleep(0.2)
146
147 def stop(self):
148 if self.proc:

Calls

no outgoing calls