-
Notifications
You must be signed in to change notification settings - Fork 224
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
Make notes per denomination targeted by client configurable #3305
Comments
If no one else has started on this, I can give it a shot! |
Go for it |
If I understand correctly, the issue here is that we want to have enough notes of every denomination to be able to make This sets the floor for the number of notes per denomination to So I think
Where the Does that sound correct? |
The client always tries to have a specific minimum number of e-cash notes per denomination before issuing notes of the next bigger denomination. This target determines how many out-of-band spends can happen consecutively without the client coming back online.
Currently this target is hard-coded to 2, but should be configurable:
fedimint/modules/fedimint-mint-client/src/lib.rs
Lines 847 to 855 in 33bfce1
But for this to work with the server we also need to make
max_notes_per_denomination
configurable which is currently always set to 3:fedimint/modules/fedimint-mint-common/src/lib.rs
Line 24 in 33bfce1
fedimint/modules/fedimint-mint-server/src/lib.rs
Line 189 in 33bfce1
Afaik
max_notes_per_denomination
has to betarget_per_denomination denomination_base - 1
. Currently we use base 2, somax_notes_per_denomination = target_per_denomination 1
, but to be future-proof and keep supporting arbitrary bases we should probably infer the base by looking at the second denomination (=base^1
).The text was updated successfully, but these errors were encountered: