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

feat: adapt merge_algorithm setting #742

Open
theborakompanioni opened this issue Apr 17, 2024 · 0 comments
Open

feat: adapt merge_algorithm setting #742

theborakompanioni opened this issue Apr 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@theborakompanioni
Copy link
Collaborator

theborakompanioni commented Apr 17, 2024

As a user, I want to adapt the merge_algorithm setting when starting the Maker service, in order to have more fine-grained control and the ability to use an already existing JM option.

See: https://github.com/joinmarket-webui/jam-docker/blob/master/standalone/default.cfg#L166-L170

Options:

  • default
  • gradual (for dust sweeping)
  • greedy (for more rapid dust sweeping)
  • greediest (for most rapid dust sweeping)

default

Default coin selection algorithm.

https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/2a108992a8cd5395f036ba5ad1202b9f77e0a5b1/src/jmclient/support.py#L67C8-L68

gradual

UTXO selection algorithm for gradual dust reduction
If possible, combines outputs, picking as few as possible of the largest
utxos less than the target value; if the target value is larger than the
sum of all smaller utxos, uses the smallest utxo larger than the value.

https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/2a108992a8cd5395f036ba5ad1202b9f77e0a5b1/src/jmclient/support.py#L86-L91

greedy

UTXO selection algorithm for greedy dust reduction, but leaves out
extraneous utxos, preferring to keep multiple small ones

https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/2a108992a8cd5395f036ba5ad1202b9f77e0a5b1/src/jmclient/support.py#L113-L116

greediest

UTXO selection algorithm for speediest dust reduction
Combines the shortest run of utxos (sorted by size, from smallest) which
exceeds the target value; if the target value is larger than the sum of
all smaller utxos, uses the smallest utxo larger than the target value.

https://github.com/JoinMarket-Org/joinmarket-clientserver/blob/2a108992a8cd5395f036ba5ad1202b9f77e0a5b1/src/jmclient/support.py#L141-L146

@theborakompanioni theborakompanioni added the enhancement New feature or request label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant