-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
block.TimeIotaMs is 0 on exported genesis #6446
Comments
Yes, this is because we're not saving/exporting @jgimeno do you think you have the bandwidth to take this on? It should be pretty straight forward. |
Ok, I think we have two options here.
@aaronc , @alexanderbez , @alessio opinions? |
@jgimeno it's a one-line fix: diff --git a/server/export.go b/server/export.go
index 672432ad0..ff3f9be5f 100644
--- a/server/export.go
+++ b/server/export.go
@@ -75,8 +75,9 @@ func ExportCmd(ctx *Context, cdc codec.JSONMarshaler, appExporter AppExporter) *
doc.Validators = validators
doc.ConsensusParams = &tmtypes.ConsensusParams{
Block: tmtypes.BlockParams{
- MaxBytes: cp.Block.MaxBytes,
- MaxGas: cp.Block.MaxGas,
+ MaxBytes: cp.Block.MaxBytes,
+ MaxGas: cp.Block.MaxGas,
+ TimeIotaMs: doc.ConsensusParams.Block.TimeIotaMs,
},
Evidence: tmtypes.EvidenceParams{
MaxAgeNumBlocks: cp.Evidence.MaxAgeNumBlocks, |
Oh yes, the doc was there :D |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Marked as done and merged. I'm closing. |
Quick question @jgimeno |
Summary of Bug
After exporting and reinitialising the chain the
consensus_params.block.time_iota_ms
value is0
. This fails when restarting the chain with the new genesis.json.Version
v0.34.4-0.20200511222341-80be50319ca5
Steps to Reproduce
gaiad export --for-zero-height > newgenesis.json
gaiad unsafe-reset-all
cp newgenesis.json ~/.gaiad/config/genesis.json
gaiad start
Fails with:
For Admin Use
The text was updated successfully, but these errors were encountered: