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

suboptimal note selection logic #1874

Open
TalDerei opened this issue Oct 24, 2024 · 0 comments
Open

suboptimal note selection logic #1874

TalDerei opened this issue Oct 24, 2024 · 0 comments

Comments

@TalDerei
Copy link
Contributor

TalDerei commented Oct 24, 2024

notes indexed by the same assetId should be strictly ordered by decreasing amounts in the SPENDABLE_NOTE indexedDB table, reducing extraneous spends when balancing a transaction.

update: actually we can't handle it at the storage package level, as the order might be overridden at the wasm level. We can handle sorting during note prioritization at the wasm level, or migrate note prioritization into the ActionList and manage it at the rust level.

screenshot_2024-10-24_at_1 01 25___pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🗄️ Backlog
Development

No branches or pull requests

1 participant