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 4a109cf commit f232768Copy full SHA for f232768
resources/scenarios/ln_framework/ln.py
@@ -539,12 +539,12 @@ def channelbalance(self, max_tries=2) -> int:
539
attempt = 0
540
while attempt < max_tries:
541
attempt += 1
542
- response = self.post("/usablebalances")
+ response = self.post("/channelbalances")
543
if not response:
544
sleep(2)
545
continue
546
res = json.loads(response)
547
- return int(sum(o["canSend"] + o["canReceive"] for o in res))
+ return int(sum(o["canSend"] for o in res) / 1000)
548
return 0
549
550
def connect(self, target_uri, max_tries=5) -> dict:
0 commit comments