iron-fish / ironfish

A novel cryptocurrency focused on privacy and accessibility.
https://ironfish.network
Mozilla Public License 2.0
962 stars 576 forks source link

Add wallet/resetAccount RPC #4985

Closed dguenther closed 2 months ago

dguenther commented 2 months ago

Summary

Adds an RPC for resetting an account. This can be used to trigger a rescan on a single account, or while scanning is disabled to quickly reset the account to the state it would have after importing the account.

Fixes IFL-2569

Testing Plan

Added tests for the RPC, as well as the new resetScanningEnabled option.

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

https://github.com/iron-fish/website/pull/707

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