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
[VDG] Add Confirmation Time to Transaction Details #11092
[VDG] Add Confirmation Time to Transaction Details #11092
Conversation
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/Details/TransactionDetailsViewModel.cs
Outdated
Show resolved
Hide resolved
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.
Better now, but there are still variations between the time displayed in the TX preview screen and this screen, which looks a bit weird. Also, I believe it doesn't handle CPFP etc... |
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.
Co-authored-by: yahiheb <52379387+yahiheb@users.noreply.github.com>
Should be fixed. Good catch! |
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.
Everything seems to work fine for me, tACK
However, but this PR is not the place I believe:
- Why not display the FeeRate on this screen?
- Since we are shipping a release including CPFP, we should handle CPFP in this calculation. I believe that's especially important for
TransactionPreviewScreen
- When we send a TX with custom FeeRate, we are not displaying anything in the
TransactionPreviewScreen
(Display the expected confirmation time on the Preview Transaction when a custom fee rate is used #11008), but we display something in theTransactionDetails
which make absolutely no sense at all.
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.
utACK.
Code is okay.
Cannot test right now since TestNet wallets are working erratically.
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.
If it takes hours, don't show minutes. If it takes days, don't show hours. If it takes weeks, don't show days, and so on... Otherwise, we allude accuracy to the user that we don't have. Furthermore, even if we could accurately predict, the user still would not need to be bothered by such noise. |
Regardless of displaying the minutes, hours, days or not which should be done in a separate PR, the issue here is why do we get different results for the supposedly the same thing? We should get the same result. |
I can reproduce @yahiheb's issue, and the source of the problem is the FeeRate calculation. The transaction: https://mempool.space/testnet/tx/a884f63cd6d1726131da60049ff87bb9e97c4dc5312d3fb1a114ddc953ddba74 It works well with selfspend btw. |
I still don't see how the calculation can be wrong. I'm just using the Fee and VirtualSize to calculate the FeeRate: public FeeRate? FeeRate
{
get
{
if (Fee is null)
{
return null;
}
return new FeeRate(Fee, VirtualSize);
}
} I'm lost. Can someone drop me a helping hand? cc @zkSNACKs/code-team |
The issue is rare and not caused by this PR. I don't have the time right now to investigate more, but the issue is that Everything seems to work well with this PR by itself, except the CPFP as I already mentioned. |
https://mempool.space/testnet/tx/30fe22c646eeae7b500652736566a16faadcb91254589a2bc940eb9d20bf296a |
Could you debug what is the fee rate that the transaction details received? |
FTR, I don't know how exactly you guys are estimating the fees, but the fee estimator that you're using only gives you a single entry back: https://wasabiwallet.co/api/v4/btc/Blockchain/all-fees?estimateSmartFeeMode=CONSERVATIVE This means 1 s/b should confirm within 20 minutes. So it's strange that 1.8 s/b gives you 3 and 8 hours. |
On TestNet it uses hardcoded values WalletWasabi/WalletWasabi.Fluent/Helpers/TransactionFeeHelper.cs Lines 14 to 26 in 1fb06ef
|
It received 2.426 Sat/B while it is 1.82 sat/vB on https://mempool.space/testnet/tx/320bc22297f905498834857c89880319dea1f3d6c0c6e560d988ad62e01d8c5f |
WalletWasabi.Fluent/Views/Wallets/Home/History/Details/TransactionDetailsView.axaml
Outdated
Show resolved
Hide resolved
@nopara73 please check what I did. I played by ear there. |
WalletWasabi/Blockchain/Analysis/FeesEstimation/AllFeeEstimate.cs
Outdated
Show resolved
Hide resolved
Now the confirmation time is the same, but the time on the fee chart is wrong. Notice that the fee rate that the Preview Transaction/Details received is
What is this |
Co-authored-by: yahiheb <52379387+yahiheb@users.noreply.github.com>
Co-authored-by: yahiheb <52379387+yahiheb@users.noreply.github.com>
As promised. Merging. Remaining issues:
|
As the title says, this adds the estimated estimated confirmation time.