Skip to content
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

DRAFT push payjoin details to transaction model #372

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DanGould
Copy link
Contributor

This is a draft attempt (IDEK WHAT I'M DOING IN FLUTTER) to move data from some of these isolated processes into the main wallet history data structures.

I don't it make sense to push completed transactions to the success screen, because payjoin is async. A sender should have the originalPsbt to pass to the success screen before entering spawnSender, and it will await a response from the sender with a payjoinPsbt to tupdate the transaction with.

A receiver should have an unsigned payjoinPsbt that it can listen for in mempool.

the transaction from an isolate is going to have to be passed as an event. That should propagate into the Transaction model and history. Then the network fees of each contributor can be calculated by taking the difference between originalPsbt and payjoinPsbt

@i5hi i5hi requested a review from mocodesmo December 22, 2024 16:58
@i5hi i5hi self-assigned this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants