-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Incorrectly shown forwarded payments amount #374
Comments
The last row here appears to match what you have shown from lncli, the ones above seem odd to me, what do these other records look like from lncli? |
Hi @cryptosharks131, Thank you for checking the issue. Have a closer look, the five "Payments Routed" shown in the screenshot have all the same in-peer and out-peer with unchanged=same fee 400ppm.
The last row as shown by lncli output is a payment with BR |
I do see that, it is odd. I was hoping to get an example of both a record that looked okay and one that was wrong. Another good comparison would be seeing what is in the LNDg api data that is feeding the page, you can browse the api data from this url: I have not been able to replicate this but I suspect this is some sort of browser language issue when the page is rendering. |
Hi @cryptosharks131, Here a {
"forwarding_events": [
{
"timestamp": "<timestamp>",
"chan_id_in": "<in-channel-id>",
"chan_id_out": "<out-channel-id>",
"amt_in": "1063",
"amt_out": "1063",
"fee": "0",
"fee_msat": "425",
"amt_in_msat": "1063531",
"amt_out_msat": "1063106",
"timestamp_ns": "<timestamp>",
"peer_alias_in": "<in-peer>",
"peer_alias_out": "<out-peer>"
},
{
"timestamp": "<timestamp>",
"chan_id_in": "<in-channel-id>",
"chan_id_out": "<out-channel-id>",
"amt_in": "996",
"amt_out": "996",
"fee": "0",
"fee_msat": "398",
"amt_in_msat": "996506",
"amt_out_msat": "996108",
"timestamp_ns": "<timestamp>",
"peer_alias_in": "<in-peer>",
"peer_alias_out": "<out-peer>"
},
{
"timestamp": "<timestamp>",
"chan_id_in": "<in-channel-id>",
"chan_id_out": "<out-channel-id>",
"amt_in": "1205",
"amt_out": "1205",
"fee": "0",
"fee_msat": "482",
"amt_in_msat": "1205614",
"amt_out_msat": "1205132",
"timestamp_ns": "<timestamp>",
"peer_alias_in": "<in-peer>",
"peer_alias_out": "<out-peer>"
},
{
"timestamp": "<timestamp>",
"chan_id_in": "<in-channel-id>",
"chan_id_out": "<out-channel-id>",
"amt_in": "1458",
"amt_out": "1458",
"fee": "0",
"fee_msat": "583",
"amt_in_msat": "1458742",
"amt_out_msat": "1458159",
"timestamp_ns": "<timestamp>",
"peer_alias_in": "<in-peer>",
"peer_alias_out": "<out-peer>"
},
{
"timestamp": "<timestamp>",
"chan_id_in": "<in-channel-id>",
"chan_id_out": "<out-channel-id>",
"amt_in": "1171",
"amt_out": "1171",
"fee": "0",
"fee_msat": "468",
"amt_in_msat": "1171585",
"amt_out_msat": "1171117",
"timestamp_ns": "<timestamp>",
"peer_alias_in": "<in-peer>",
"peer_alias_out": "<out-peer>"
},
{
"timestamp": "<timestamp>",
"chan_id_in": "<in-channel-id>",
"chan_id_out": "<out-channel-id>",
"amt_in": "874",
"amt_out": "874",
"fee": "0",
"fee_msat": "349",
"amt_in_msat": "874436",
"amt_out_msat": "874087",
"timestamp_ns": "<timestamp>",
"peer_alias_in": "<in-peer>",
"peer_alias_out": "<out-peer>"
},
{
"timestamp": "<timestamp>",
"chan_id_in": "<in-channel-id>",
"chan_id_out": "<out-channel-id>",
"amt_in": "880",
"amt_out": "880",
"fee": "0",
"fee_msat": "352",
"amt_in_msat": "880440",
"amt_out_msat": "880088",
"timestamp_ns": "<timestamp>",
"peer_alias_in": "<in-peer>",
"peer_alias_out": "<out-peer>"
}
],
"last_offset_index": 7
} Here the corresponding UI-appearance (within Firefox, default language German) BR |
Thanks for the details! Could you also confirm what these records look like from your LNDg api data? This will help rule out any issue from the backend loading the data and it should match what you see in the lncli responses. You can filter the LNDg api data from These are the calculation done on the front-end, I don't see anything in particular that might cause the issue Does changing your browser language to English give accurate results (although they may not be in the preferred language format)? |
Hi @cryptosharks131, I can confirm that LNDg api data from BR |
Background
Occationally, forwarded payments are shown with incorrect amount. Unclear when it exactly happens. Observed with different peers, but not consistenly. For some forwards wrong, for others right. It seems to be forward specific.
I guess it is related to formatting of amounts.
Example forward for a channel with zero base fee and
400 ppm
:lncli fwdinghistory
:In Thunderhub and Raspiblitz the forward is correctly shown with amount
937 sats
and fee374 msats
.The same forward is shown incorrectly in lndg (see last row of screenshot, other rows are forwards of the same in/out-peers with unchanged same PPM):
Environment
lndg
: v1.8.0lnd
: 0.17.3-betauname -a
on *Nix): RaspiblitzLinux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Steps to reproduce
Unclear.
Expected behaviour
Amounts shown as within
lncli
.Actual behaviour
Amounts sometimes shown wrong.
The text was updated successfully, but these errors were encountered: