Open ktecho opened 2 years ago
What I've found after investigating the issue, is that after paying the invoice, channel/listChannels
is done too soon for the first node, so the balance is not updated yet. For the rest of the nodes, the channel/listChannels
is done later, so it's always correct.
I've seen this duplicating the channel/listChannels
call that's done in getChannels()
in clightningService.ts
, so the first call has the wrong balance, but the second one done 100 ms later has the correct information.
I've been trying to use some calls to get the information about it the last payment is fully done or is still being made. I asked some Blockstream employees and they gave me some hints, but:
1- They told me to waitsendpay
, but the function seems like it's missing from the RTL REST API.
2- They also told me to do peer/listpeers
to check that there are not HTLCs in flight, but the peer/listpeers
call in RTL does not return all the required fields.
Do you have any recommendation on what we could do? Thanks!
I've ran into this issue before as well. The manual workaround is to just hit the refresh button in the sidebar, but it would be better to try to fix it.
Since RTL doesn't currently support the API's that we need, the best course of action would be to open a PR in the RTL repo to add them. I've done this in the past when I needed additional data for Polar. Also, I'm sure they would appreciate the updates.
I could add the methods in RTL, but having into account that the docker images are already generated and will have the old RTL, could we regenerate all the Core Lightning docker images so they contain the latest RTL API?
Yes, I can rebuild and push new images to DockerHub with the updated RTL.
Cool! I could give it a look next week if children left some free energy in me... :)
lol.. i know the feeling as well. Good luck 😁
Describe the bug Sometimes, after paying an invoice, the balance of the channel is not updated correctly, and the colors of the the lines in the channel are wrong too. This happens afaik only for Core Lightning nodes.
To Reproduce
master
(it fails also for v1.3.0 AppImage)yarn ; yarn package; ./dist/polar-linux-x86_64-v1.3.0.AppImage
).Expected behavior Information and graphs about channels and balances must be accurate.
Screenshots So for the first channel, it seems like it didn't paid the invoice:
The second channel is fine. It got the correct information:
The graph also showns the wrong balance:
Desktop (please complete the following information):
I'll tell what I found about this in next message.