-
Notifications
You must be signed in to change notification settings - Fork 232
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
Wallet synchronization improvement #2025
Conversation
biospb
commented
Apr 15, 2022
- Much faster sync on startup
- Avoid double scan of the same address range
* Much faster sync on startup * Avoid double scan of the same address range
I suspect this might be related to #2017. |
yes. this is fix for it |
Codecov Report
@@ Coverage Diff @@
## dev #2025 +/- ##
==========================================
- Coverage 59.41% 59.37% -0.04%
==========================================
Files 673 673
Lines 32332 32344 +12
==========================================
- Hits 19209 19205 -4
- Misses 10364 10379 +15
- Partials 2759 2760 +1
Continue to review full report at Codecov.
|
@@ -103,16 +112,24 @@ func (s *server) maxUsedIndex() uint32 { | |||
|
|||
// collectRecentAddresses collects addresses from used addresses until | |||
// the address with the index of the last used address + 1000. | |||
// collectRecentAddresses scans addresses in batches of numIndexesToQuery, | |||
// collectRecentAddresses scans addresses in batches of 1000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So can you rename the const name to numIndexesToQueryForFarAddresses
or something similar?