payjoin / rust-payjoin

Supercharged payment batching to save you fees and preserve your privacy
https://payjoindevkit.org
82 stars 34 forks source link

Resume multiple payjoins #283

Closed DanGould closed 2 weeks ago

DanGould commented 1 month ago

Fix #267

Send and receive now open sessions with the directory that can be persisted. This includes an e2e test in the UI. As of this PR each session is persisted forever, but a follow up will handle session expiration and archive past sessions for both sender and receiver

This also introduces a new payjoin-cli resume command that continues all active send and receive sessions from the database.

struct SessionContext

The V2Context has been replaced SessionContext that contains an address for the session's URI and an expiry time at which the session is no longer usable.

Closes #205 as a side effect

DanGould commented 2 weeks ago

@grizznaut This is not yet quite buttoned up for release but is ready for a review. Before it gets released I'd like the end-to-end test to run the directory and ohttp relay locally. However I think I will leave session expiration to a follow up PR to be completed by the end of next week for the sake of review simplicity.

DanGould commented 2 weeks ago

I just rebased on master so that tests could run once more