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 }}
Repository navigation
process_response methods need to handle failures consistently #1066
In Sender<WithReplyKey>, Sender<V2GetContext>, and Receiver<Initialized> when we process the ohttp response, any error is treated as a fatal state transition.
In Receiver<PayjoinProposal> any error is treated as a transient error.
The correct thing to do is probably to support transient and fatal transitions in all of these, depending on what actually happened (MaybeFatalTransition already supports this, but transient errors are never returned in those process_responses currently). Some network errors may be transient and retryable, others like ohttp decapsulation failures are always fatal.
It would make sense to match on the sepcific http error. If 5xx we can try again so that is a transient error. If 4xx I am not sure what the recourse would be -- lets say the server OHTTP key rotated that may also be a fatal error for now .
Activity
arminsabouri commentedon Sep 15, 2025
There are three error variants in PayjoinProposal::process_response
It would make sense to match on the sepcific http error. If 5xx we can try again so that is a transient error. If 4xx I am not sure what the recourse would be -- lets say the server OHTTP key rotated that may also be a fatal error for now .