Remove ReceivedProposalPsbt infavor of session outcome#1171
Remove ReceivedProposalPsbt infavor of session outcome#1171arminsabouri merged 1 commit intopayjoin:masterfrom
ReceivedProposalPsbt infavor of session outcome#1171Conversation
Pull Request Test Coverage Report for Build 18727546149Details
💛 - Coveralls |
spacebear21
left a comment
There was a problem hiding this comment.
I am not totally convinced that receiving the proposal and closing the session are the same event, couldn't there be a scenario where the proposal is received but the receiver broadcasted the fallback tx or double-spent their input, so the proposal tx is no longer valid?
The sessions should close once there is no more expected payjoin activity -- for sender it would be receiving the proposal. Check out the rationale here #807 (comment) |
spacebear21
left a comment
There was a problem hiding this comment.
code ACK - makes sense after re-reading the rational in #807. Maybe we should include that rationale in code comments for the sender and receiver closed events?
The sender session is marked as successfully closed once the payjoin proposal is received. Currently, this state is recorded in a separate event (`ReceivedProposalPsbt`) from the `Closed` event which is inconsistent with the reciever implementation.
1365f77 to
3bdda03
Compare
The sender session is marked as successfully closed once the payjoin proposal is received. Currently, this state is recorded in a separate event (
ReceivedProposalPsbt) from theClosedevent which is inconsistent with the reciever implementation.Pull Request Checklist
Please confirm the following before requesting review:
AI
in the body of this PR.