We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4b1846 commit a766871Copy full SHA for a766871
src/warnet/cln.py
@@ -82,6 +82,8 @@ def open_channel_to_tank(self, index: int, channel_open_data: str) -> str:
82
tank = self.warnet.tanks[index]
83
[pubkey, host] = tank.lnnode.getURI().split("@")
84
res = self.lncli(f"fundchannel id={pubkey} {channel_open_data}")
85
+ if "txid" not in res or "outnum" not in res:
86
+ raise ValueError(f"Error opening channel to tank: {res}")
87
return f"{res['txid']}:{res['outnum']}"
88
89
def update_channel_policy(self, chan_point: str, policy: str) -> str:
0 commit comments