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

Revert to more exhaustive address scanning #561

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danimoh
Copy link
Member

@danimoh danimoh commented Dec 12, 2024

f4b5904f ("Improve syncing/detection during login") changed address scanning to strictly allow an address gap of at most ACCOUNT_MAX_ALLOWED_ADDRESS_GAP. Now that the more exhaustive scanning is no problem anymore with the recent performance improvements of @nimiq/core, we can revert this to the old implementation which is less restrictive by always checking full chunks of size ACCOUNT_MAX_ALLOWED_ADDRESS_GAP, which can result in address gaps between ACCOUNT_MAX_ALLOWED_ADDRESS_GAP and 2*ACCOUNT_MAX_ALLOWED_ADDRESS_GAP-1. This allows to potentially find more of the user's addresses.

Reverting the commit also fixes the lint error for overlong lines, that #554 intended to fix.
The more detailed status messages in LoginSuccess of f4b5904f have not been reverted as the only remaining change of that commit.

However, all that being said, we could also consider increasing ACCOUNT_MAX_ALLOWED_ADDRESS_GAP instead, to more consistently increase the search range.



f4b5904 ("Improve syncing/detection during login") changed address scanning to
strictly allow an address gap of at most ACCOUNT_MAX_ALLOWED_ADDRESS_GAP, while the
implementation we are reverting to is less restrictive by always checking full chunks
of size ACCOUNT_MAX_ALLOWED_ADDRESS_GAP, which can result in address gaps between
ACCOUNT_MAX_ALLOWED_ADDRESS_GAP and 2*ACCOUNT_MAX_ALLOWED_ADDRESS_GAP-1. This allows
to potentially find more of the user's addresses. The more exhaustive scanning is no
problem anymore now with the recent perfomance improvements of @nimiq/core.

The more detailed status messsages in LoginSuccess of f4b5904 have not been reverted
as the only remaining change. The addition of a skip button has already been reverted
previously in 1424f5f.
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

Successfully merging this pull request may close these issues.

1 participant