handshake-org / handshake-org/hsd

Wallet old coin selection can be improved

Open
#931 0 comments 0 reactions 0 assignees View on GitHub
enhancement performance wallet
Dominant language
JavaScript
Stars
2.1k
Forks
306
PR merge metrics
No merged PRs in 30d

Description

[Newly introduce indexes ](https://github.com/handshake-org/hsd/pull/928) for coins can be reused for the legacy coin selection types as well. This will reduce the number of items selected from the disk (will be useful for more advanced in memory coin selection algorithms, e.g. knapsack). Resolve coins from the WalletSource can also be reused for wallet in memory coin selection.

Contributor guide

Open the contributing guide

Research direction

Start by reading the newly introduced coin indexes in pull request #928, then trace the legacy coin selection paths and WalletSource coin resolution mentioned here. Done means reusing those indexes and resolved coins to reduce disk-selected items while preserving existing wallet selection behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.