mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-27 02:37:13 +01:00
another cln rpc sse try
This commit is contained in:
parent
a486cbe278
commit
92ea0635d7
1 changed files with 3 additions and 2 deletions
|
@ -122,11 +122,12 @@ class CLightningWallet(Wallet):
|
|||
call = json.dumps(
|
||||
{"method": "waitanyinvoice", "id": 0, "params": [self.last_pay_index]}
|
||||
)
|
||||
writer.write(call.encode("utf-8"))
|
||||
writer.write(call.encode())
|
||||
await writer.drain()
|
||||
|
||||
data = await reader.read(100)
|
||||
data = await reader.read(500)
|
||||
paid = json.loads(data.decode("ascii"))
|
||||
print(paid)
|
||||
|
||||
paid = self.ln.waitanyinvoice(self.last_pay_index)
|
||||
self.last_pay_index = paid["pay_index"]
|
||||
|
|
Loading…
Add table
Reference in a new issue