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 "full" and "none" indexing modes #112

Merged
merged 2 commits into from
May 8, 2024
Merged

Add "full" and "none" indexing modes #112

merged 2 commits into from
May 8, 2024

Conversation

n8maninger
Copy link
Member

@n8maninger n8maninger commented May 2, 2024

Adds "Full" and "None" indexing modes. The indexing mode can only be set once and cannot be changed since it changes how the state tree is stored.

"Partial" is the default. It only stores the state and events for addresses that are connected to a wallet.

"Full" will store the entire state of the blockchain regardless of addresses loaded into the wallet. It will also throw an error if the user attempts to trigger a scan with /wallet/scan

"None" will not process chain updates and treat the chain state as read-only. This isn't particularly useful now, but it will be nice when networked databases are supported.

wallet/update.go Show resolved Hide resolved
persist/sqlite/wallet.go Show resolved Hide resolved
ChrisSchinnerl
ChrisSchinnerl previously approved these changes May 7, 2024
@n8maninger n8maninger merged commit 35b3095 into master May 8, 2024
14 checks passed
@n8maninger n8maninger deleted the nate/index-mode branch May 8, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants