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

Wallet synchronization improvement #2025

Merged
merged 5 commits into from
May 19, 2022
Merged

Conversation

biospb
Copy link
Contributor

@biospb 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
@D-Stacks
Copy link
Contributor

D-Stacks commented Apr 15, 2022

I suspect this might be related to #2017.

@biospb
Copy link
Contributor Author

biospb commented Apr 15, 2022

yes. this is fix for it

@codecov
Copy link

codecov bot commented Apr 17, 2022

Codecov Report

Merging #2025 (e2b2206) into dev (4d0cf21) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@            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     
Impacted Files Coverage Δ
cmd/kaspawallet/daemon/server/sync.go 0.00% <0.00%> (ø)
app/protocol/flows/v5/blockrelay/block_locator.go 52.94% <0.00%> (-11.77%) ⬇️
infrastructure/network/netadapter/router/route.go 82.85% <0.00%> (-5.72%) ⬇️
...k/netadapter/server/grpcserver/connection_loops.go 60.34% <0.00%> (-5.18%) ⬇️
...ructure/network/rpcclient/grpcclient/grpcclient.go 81.25% <0.00%> (+4.68%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d0cf21...e2b2206. Read the comment docs.

@@ -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,
Copy link
Collaborator

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?

cmd/kaspawallet/daemon/server/sync.go Show resolved Hide resolved
someone235
someone235 previously approved these changes May 7, 2022
@someone235 someone235 changed the base branch from master to dev May 16, 2022 20:33
@someone235 someone235 dismissed their stale review May 16, 2022 20:33

The base branch was changed.

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.

3 participants