Skip to content

Commit f2fedc0

Browse files
authored
Merge pull request #334 from pinheadmz/import-cb
rpc: add --cb option for circuitbreaker image in import-json
2 parents 81724ef + bb947af commit f2fedc0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cli/graph.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def create(number: int, outfile: Path, version: str, bitcoin_conf: Path, random:
3838
@graph.command()
3939
@click.argument("infile", type=click.Path())
4040
@click.option("--outfile", type=click.Path())
41-
def import_json(infile: Path, outfile: Path):
41+
@click.option("--cb", type=str, default="pinheadmz/circuitbreaker:278737d")
42+
def import_json(infile: Path, outfile: Path, cb: str):
4243
"""
4344
Create a cycle graph with nodes imported from lnd `describegraph` JSON file,
4445
and additionally include 7 extra random outbounds per node. Include lightning
@@ -55,7 +56,7 @@ def import_json(infile: Path, outfile: Path):
5556
for index, n in enumerate(graph.nodes()):
5657
graph.nodes[n]["bitcoin_config"] = f"-uacomment=tank{index:06}"
5758
graph.nodes[n]["ln"] = "lnd"
58-
graph.nodes[n]["ln_cb_image"] = "pinheadmz/circuitbreaker:278737d"
59+
graph.nodes[n]["ln_cb_image"] = cb
5960
graph.nodes[n]["ln_config"] = "--protocol.wumbo-channels"
6061

6162
# Save a map of LN pubkey -> Tank index

0 commit comments

Comments
 (0)