cln sse should be working

This commit is contained in:
benarc 2021-11-03 19:15:02 +00:00
parent 92ea0635d7
commit 7af0b786d1

View File

@ -125,9 +125,8 @@ class CLightningWallet(Wallet):
writer.write(call.encode())
await writer.drain()
data = await reader.read(500)
data = await reader.read()
paid = json.loads(data.decode("ascii"))
print(paid)
paid = self.ln.waitanyinvoice(self.last_pay_index)
self.last_pay_index = paid["pay_index"]