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

R4R: Split the export command into reset and export #1522

Merged
merged 5 commits into from
Jun 5, 2019

Conversation

chengwenxi
Copy link
Contributor

Resolves: #1511

@chengwenxi chengwenxi changed the title WIP: Split the export command into reset and export R4R: Split the export command into reset and export Jun 4, 2019
forZeroHeight := viper.GetBool(flagForZeroHeight)
appState, validators, err := appExporter(ctx, ctx.Logger, db, traceWriter, height, forZeroHeight)
appState, validators, err := appExporter(ctx, ctx.Logger, db, traceWriter, forZeroHeight)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you remove height from export option? It is possible to export state for zero height but not at current height.

Copy link
Contributor Author

@chengwenxi chengwenxi Jun 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you remove height from export option? It is possible to export state for zero height but not at current height.

If you want to export state for zero or snapshoot height, reset it first.

@haifengxi haifengxi merged commit 5371fd7 into develop Jun 5, 2019
@chengwenxi chengwenxi deleted the vincent/replay branch June 5, 2019 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants