Merge pull request #391 from arcbtc/FastAPI

cln sse should be working
This commit is contained in:
Arc 2021-11-03 19:15:30 +00:00 committed by GitHub
commit 0ca033e1a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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