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 an init function for a standalone ReadStateService #8520

Open
arya2 opened this issue May 13, 2024 · 0 comments · May be fixed by #8589
Open

Add an init function for a standalone ReadStateService #8520

arya2 opened this issue May 13, 2024 · 0 comments · May be fixed by #8589
Assignees
Labels
A-blockchain-scanner Area: Blockchain scanner of shielded transactions A-state Area: State / database changes C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage

Comments

@arya2
Copy link
Contributor

arya2 commented May 13, 2024

Motivation

We want to use the ReadStateService from other processes like zebra-scan or an RPC wallet without spawning or checking on a block write task.

It would be useful to have an initializer function for creating a read-only ReadStateService to keep the ReadStateService::new() method private.

@arya2 arya2 added C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage A-state Area: State / database changes labels May 13, 2024
@arya2 arya2 changed the title Update the block_write_task field in ReadStateService in an enum and add a read-only init function Add an init function for a standalone ReadStateService May 15, 2024
@arya2 arya2 self-assigned this May 15, 2024
@oxarbitrage oxarbitrage added the A-blockchain-scanner Area: Blockchain scanner of shielded transactions label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-blockchain-scanner Area: Blockchain scanner of shielded transactions A-state Area: State / database changes C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage
Projects
Status: In progress
2 participants