-
Notifications
You must be signed in to change notification settings - Fork 492
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
Improve usages of wallet.GetTransactions() #11493
Conversation
How about to do it like this kiminuo@c0ca01c? It's the same as what you did but we would have nicer API in |
It would be great to actually use Even though, thinking about it right now: What if one just queries |
Initially, I wanted to make a
To be clear, progressing towards #11421 is my priority. I've been wondering for quite some time how to do it properly. I believe that I've seen that in #11421 you're storing the txid. Great, so I completely agree with you:
So in any case I believe it would be better to first implement this PR/your suggestion, then slightly update it while we are merging #11421 |
I think that
I need to think about this a bit, I'll leave it open in a tab and I'll respond later. |
Could we go with #11493 (comment) and then go with #11493 (comment) as a follow-up? |
I pushed your code. Like this with a predicate: Or this with some fields with filtering: I believe it would make sense instead of having to filter afterwards, like what we are doing in both usages: |
Thank you
I think it might be good to do it. We will work with SQLite in similar way because there we can easily filter using |
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
Basically found by @kiminuo
31533e4: Create
wallet.GetTransaction()
to perform more efficiently operations inCancelTransactionDialogViewModel
andSpeedUpDialogViewModel
. Also add some commentsb9c61aa: Avoid to recompute
OrderByBlockchain
on an object which is already ordered.