Skip to content

Commit

Permalink
fix: properly implement block cadence
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Nov 4, 2020
1 parent ce56e24 commit b2d9446
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/agoric-cli/lib/chain-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ export function finishCosmosGenesis({ genesisJson, exportedGenesisJson }) {
genesis.consensus_params = exported.consensus_params;
}

// This is necessary until https://github.com/cosmos/cosmos-sdk/issues/6446 is closed.
genesis.consensus_params.block.time_iota_ms = '1000';
// Should be equal to the block cadence in milliseconds, according to @melekes
// on Discord.
genesis.consensus_params.block.time_iota_ms = `${BLOCK_CADENCE_S * 1000}`;

return djson.stringify(genesis);
}

0 comments on commit b2d9446

Please sign in to comment.