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

Add setScanning RPC and CLI commands #4943

Merged
merged 21 commits into from
May 23, 2024
Merged

Add setScanning RPC and CLI commands #4943

merged 21 commits into from
May 23, 2024

Conversation

dguenther
Copy link
Member

@dguenther dguenther commented May 6, 2024

Summary

Adds startScanning and stopScanning RPC routes to enable or disable wallet account scanning on a per-account basis.

TODO

  • Add tests for the RPC routes
  • Add tests for the wallet code changes
  • Save setting to the wallet db and create migration
  • Decide if chain processor should restart when starting/stopping scanning Addressing this with earliest-first scanning: Scan wallet accounts from earliest account head first #4964
  • Expose whether scanning is stopped/started through getAccountStatus

Fixes IFL-2547
Fixes IFL-2548
Fixes IFL-2550

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[x] Yes

iron-fish/website#706

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

@dguenther dguenther force-pushed the start-stop-syncing branch from 21e260d to 239b0f4 Compare May 6, 2024 22:18
@dguenther dguenther changed the title WIP: Add startSyncing and stopSyncing RPC routes WIP: Add startScanning and stopScanning RPC routes May 14, 2024
@NullSoldier NullSoldier force-pushed the start-stop-syncing branch from 3c8f732 to 29b54d0 Compare May 22, 2024 21:34
@dguenther dguenther marked this pull request as ready for review May 23, 2024 01:41
@dguenther dguenther requested a review from a team as a code owner May 23, 2024 01:41
@dguenther dguenther changed the title WIP: Add startScanning and stopScanning RPC routes Add startScanning and stopScanning RPC and CLI commands May 23, 2024
@dguenther dguenther merged commit 2a4283f into staging May 23, 2024
4 checks passed
@dguenther dguenther deleted the start-stop-syncing branch May 23, 2024 21:31
@dguenther dguenther changed the title Add startScanning and stopScanning RPC and CLI commands Add setScanning RPC and CLI commands Jun 7, 2024
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.

2 participants