Skip to content

Commit a766871

Browse files
committed
Added some extra logging to cln create channel
1 parent c4b1846 commit a766871

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/warnet/cln.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ def open_channel_to_tank(self, index: int, channel_open_data: str) -> str:
8282
tank = self.warnet.tanks[index]
8383
[pubkey, host] = tank.lnnode.getURI().split("@")
8484
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}")
8587
return f"{res['txid']}:{res['outnum']}"
8688

8789
def update_channel_policy(self, chan_point: str, policy: str) -> str:

0 commit comments

Comments
 (0)