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

Import, syncing improvement #379

Merged
merged 2 commits into from
Aug 17, 2019
Merged

Import, syncing improvement #379

merged 2 commits into from
Aug 17, 2019

Conversation

AdamISZ
Copy link
Member

@AdamISZ AdamISZ commented Aug 17, 2019

These two commits were detailed in #359 but since that project is incomplete and these changes were found, after considerable testing by myself and @kristapsk , to be useful for improving the wallet syncing experience, and since we want to push out a release, they are being PR-ed and then merged here separately from that.

Prior to this commit, there was duplicated code in maker
and taker modules to import addresses, now all calls to
the wallet for fresh addresses can optionally pass a
blockchaininterface instance and if this is done, the
new address will be imported to the BCI at the same time.
Prior to this commit, addresses imported on tx creation
were at the tip of the index only, but detailed sync
requires all address gap-forwards to be imported, else
it requires a restart.
The particular fix approach taken her is aggression
because import is cheap; we import wallet.gaplimit forwards
on all branches, taking advantage of the bci's function
_collect_addresses_gap, thus ensuring that unless the gap
limit changes, we will definitely not need a restart.
Fast sync did not suffer from this and is unchanged.
@AdamISZ AdamISZ changed the title Importimprovement Import, syncing improvement Aug 17, 2019
AdamISZ added a commit that referenced this pull request Aug 17, 2019
4b4f8c9 Fix bug in detailed wallet sync relating to gap addrs. (AdamISZ)
6c15bd7 Make address imports with address requests in wallet Prior to this commit, there was duplicated code in maker and taker modules to import addresses, now all calls to the wallet for fresh addresses can optionally pass a blockchaininterface instance and if this is done, the new address will be imported to the BCI at the same time. (AdamISZ)
@AdamISZ AdamISZ merged commit 4b4f8c9 into master Aug 17, 2019
@AdamISZ AdamISZ deleted the importimprovement branch September 8, 2019 11:28
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