-
Notifications
You must be signed in to change notification settings - Fork 493
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] UI Decoupling #50 #11644
[VDG] UI Decoupling #50 #11644
Conversation
@ichthus1604 Could you fix conflicts? |
@soosr Ready for review ;) |
One of my wallet has a CJ item which was detected as a self spend transaction and the transaction fee is higher than the amount the wallet received back which causes the history to have an item with a negative outgoing amount. However, the History building shouldn't fail. On master currently, the icon is empty and that's all. |
If I remove the exception and just return a transactionviewmodel in the issue mentioned before. I get another exception.
On master I can see it was a CPFP speed up transaction.
|
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.
Couldn't continue the testing due to the issues above.
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.
History initial sorting is wrong
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.
@ichthus1604 @SuperJMN What's the status of this PR? |
As of this weekend, it still had some problems with speed up. Not sure if @ichthus1604 has fixed it, though. |
Might be related: #11788 |
@soosr there is an issue I haven't identified yet, which causes the problem you described here. We've been doing pair debugging together with @SuperJMN several times in the last few days, and haven't been able to figure out the cause yet. Basically, the Model returns a list of 2 items and the TDG shows 3. The root cause of this is yet unknown. The We will continue to debug this. |
Should fix #11788 |
OK, here's the cause for the record: The changesets we were generating could only contain additions or updates, but never deletions. Why? Because we always refreshed items in an additive way. Thus, items could be new or updated ONLY. We never actually compared the 'previous state' to the 'new state", so there was no way to know which items were deleted. What I have done is precisely a new way of updating that generates a full list of diffs, by introducing a class that acts as a 'facilitator.' Underneath, it uses a SourceCache that actually manages all the differences for us. If you have any more questions or need further assistance, feel free to ask. |
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.
tACK
TransactionModel
TransactionTreeBuilder
HistoryViewModel
CoinjoinHistoryItemViewModel
CoinjoinsHistoryItemViewModel
HistoryItemViewModelBase
SpeedUpHistoryItemViewModel
TransactionHistoryItemViewModel