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

Can chainD run start with X epoch? #101

Open
JeroniMan opened this issue Feb 22, 2024 · 5 comments
Open

Can chainD run start with X epoch? #101

JeroniMan opened this issue Feb 22, 2024 · 5 comments

Comments

@JeroniMan
Copy link

Hello, we used chainD and now we need relocate this service into new infrastructure. How we can start not with first epoch/block/slot, can chainD starts to sync with current state in blockchain?
I try research config and initial params into services, and finded epochStart but dont understant how it works and sets, it doesnt discribed in README and now used in

chaind/main.go

Line 149 in 4484de1

func fetchConfig() error {
.

Thanks!

@mcdee
Copy link
Collaborator

mcdee commented Feb 26, 2024

Unfortunately there is no way to do this with the current chaind implementation. It's on the list to address, but not something that is coming any time soon.

The simplest way to relocate is to do a backup and restore of the database, and chaind will pick up from the point of the backup when it is started.

@JeroniMan
Copy link
Author

Thanks, we thought about this way, will try.

@JeroniMan
Copy link
Author

@mcdee hello, could you please help, is it right that for continue working chainD, enought metadata table and last epoch info in other tables (for example t_validator_balances)?
Thank you.

@JeroniMan
Copy link
Author

@mcdee Hi, we started chaind with snapshot of our old Postgres database, and it works, but t_validator_day_summaries doesnt calculate, i dont understand why, may be you know how i can run recalculating this table by another way.
Thank you!

@mcdee
Copy link
Collaborator

mcdee commented Apr 7, 2024

The summarizer only runs after the chain data is synced. Is this now calculating the day summaries?

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

No branches or pull requests

2 participants