You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 13, 2022. It is now read-only.
This is very much notable in an on-chain test of test_session_topup:
After topping up, the client will resume paying the server on the topped up channel. The server does not accept the topup yet for a few more blocks. The response includes a RDN-Invalid-Amount header, causing the client to adopt the server's last known "valid" amount and retrying the payment immediately again.
The client cannot differentiate between a balance signature update/recovery (which also returns a RDN-Invalid-Amount header) and an unconfirmed topup.
So there are two possible solutions for this:
Introduce a new error header RDN-Insufficient-Funds (which exists but is currently unused) or something along those lines, to indicate that this is a different error than an outdated balance signature or wrong price paid. This could be used in combination with RDN-Insufficient-Confirmations.
Introduce some client-side-only logic that tries to detect situations like this (for example by checking if the exact price requested has already been paid and the channel has recently been topped up). Though I think this might be too unnecessarily complex.
The text was updated successfully, but these errors were encountered:
This is very much notable in an on-chain test of
test_session_topup
:After topping up, the client will resume paying the server on the topped up channel. The server does not accept the topup yet for a few more blocks. The response includes a
RDN-Invalid-Amount
header, causing the client to adopt the server's last known "valid" amount and retrying the payment immediately again.The client cannot differentiate between a balance signature update/recovery (which also returns a
RDN-Invalid-Amount
header) and an unconfirmed topup.So there are two possible solutions for this:
RDN-Insufficient-Funds
(which exists but is currently unused) or something along those lines, to indicate that this is a different error than an outdated balance signature or wrong price paid. This could be used in combination withRDN-Insufficient-Confirmations
.The text was updated successfully, but these errors were encountered: