Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Use an initial height of 0 in default chain state (fixes #369) #373

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

tarcieri
Copy link
Contributor

Now that tendermint-rs v0.11 is out, we can use a default chain height of 0 for chains which are in the initial state (previously it was disallowed).

This bit us yesterday on the cosmoshub-3 upgrade.

Now that `tendermint-rs` v0.11 is out, we can use a default chain height
of zero for chains which are in the initial state.

This bit us yesterday on the `cosmoshub-3` upgrade.
fn write_initial_state(path: &Path) -> Result<Self, Error> {
let mut consensus_state = consensus::State::default();

// TODO(tarcieri): correct upstream `tendermint-rs` default height to 0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would be good to change this upstream in tendermint-rs, then we can just rely on consensus::State::default()

@tarcieri tarcieri merged commit 6a2f1b2 into master Dec 12, 2019
@tarcieri tarcieri deleted the fix-initial-chain-height branch December 12, 2019 17:51
@tarcieri tarcieri mentioned this pull request Dec 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants