-
Notifications
You must be signed in to change notification settings - Fork 23
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
Model more transaction history details #1111
Conversation
With ec9b7de, I insert the invoice into the |
This is more-or-less ready, aside from the above comment |
I would remove it once it has expired. I think our invoices are already created with an expiry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except for the preimage. I would leave that out completely :D
Can we get some screenshots too? 👀
I can make some, although it isn't pretty as this is just the modeling side of things and not the display |
Fair enough, we can look at the screenshots once that's nicer. |
See these lines in 10101/mobile/native/src/ln_dlc/mod.rs Lines 578 to 584 in e30aa48
How should we interpret this? Apparently I'm not sure if we can rely on the +2 hours, but maybe we just should? Also, there is a default expiry time: (1 hour). |
ad9282d
to
4735cd4
Compare
@luckysori some screenshots! Missing on chain because it's a pain 😆 but I can take one if we need. It requires restarting the app to show up. |
Actually, I'm not so sure of this. I think an expired invoice is semantically a failed payment (or maybe we can add a new HTLCStatus for this called expired), or something similar. User stories for this (proposed) feature:
If the user creates an invoice, sends it off, and it isn't paid, they should be able to go back and see that it wasn't paid instead of silently disappearing, imo. |
578c01c
to
6f12a4a
Compare
I think this is ready, pending review. That is to say, I am happy with it now. |
6f12a4a
to
b9bc586
Compare
Are we happy with this? If so, I can resolve conflicts for merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can make it look nice in a follow-up PR :) Thank you Cael.
That's the idea - I wanted to stick to the backend side (hence 'model more') here and implement just the minimum amount of frontend to test it. I figured that the looking nice could be up to more debate. I'll rebase this soon for merge |
Ah, maybe I should have a crack at displaying the fees for lightning transactions |
@Restioson could we try to merge this soon to avoid the need for rebasing? we can always keep improving in a follow-up, and these changes can be useful for others :) |
Sure, I'll do that today! |
This is in preparation for adding more fields to different types of history items
Specifically, fee and confirmation time
Otherwise, the description is not kept. However, if the payment is not paid, it will stay in the database. I'm not sure what we "should" do here. Add an expiry date and sweep to remove expired invoices?
from_node is not possible.
The old name doesn't make sense in view of the current usage
b9bc586
to
ac259e9
Compare
Addresses #872 by modelling more history details for different kinds of events (transactions, trades, fees, etc).
I don't think this PR should address the Figma mock beyond adding all the info that it has to the display and that should rather be done in a followup, but happy to change this if desired.
[ ] From nodeI do not believe this to be possible without an explicit proof-of-payment protocol: https://bitcoin.stackexchange.com/a/85555Questions:
Related: #1103