Skip to content

Configurable address index gap #23

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

Open
evd0kim opened this issue Mar 8, 2023 · 2 comments
Open

Configurable address index gap #23

evd0kim opened this issue Mar 8, 2023 · 2 comments

Comments

@evd0kim
Copy link

evd0kim commented Mar 8, 2023

I see from the code that address index gap is hardcoded and equal to 1.
I wonder if this is possible to make this a parameter.

index = storage_->GetCurrentAddressIndex(chain_, wallet_id, false) + 1;

@bakaoh
Copy link
Collaborator

bakaoh commented Mar 8, 2023

hi @evd0kim at that line, we search for the first index which has 20 consecutive unused addresses

if (consecutive_unused == 20) {

Do you want to parameterize that 20 number?

@evd0kim
Copy link
Author

evd0kim commented Mar 8, 2023

Ah, thanks.
Yes. That might be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants