Skip to content

Optimize serverAssistedImport#4128

Open
kajoseph wants to merge 3 commits intobitpay:masterfrom
kajoseph:keyImportPerformance
Open

Optimize serverAssistedImport#4128
kajoseph wants to merge 3 commits intobitpay:masterfrom
kajoseph:keyImportPerformance

Conversation

@kajoseph
Copy link
Collaborator

Description

This PR re-works the serverAssistedImport function to better optimize the performance of scanning for wallets. Additionally, I've made the code more readable (not closure spaghetti code), and added events emitting for the client to be able to display progress to the user.

Changelog

  • Completely re-works the serverAssistedImport function for clarity and optimization.
  • Adds an endpoint to BWS that simply checks for existence without the credential authentication overhead.

Testing Notes

This is pretty well covered by tests cases. This would be a bear to functionally test locally without dropping it into an existing app/use-case to test it's backward compatibility.


Checklist

  • I have read CONTRIBUTING.md and verified that this PR follows the guidelines and requirements outlined in it.

@kajoseph kajoseph marked this pull request as ready for review March 19, 2026 20:00
@kajoseph kajoseph added BWC This pull request modifies the bitcore-wallet-client package BWS This pull request modifies the bitcore-wallet-service package labels Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BWC This pull request modifies the bitcore-wallet-client package BWS This pull request modifies the bitcore-wallet-service package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant