Skip to content

Commit

Permalink
feat: decrease block time to 6s
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstein committed Oct 8, 2024
1 parent 72f8549 commit bacaa84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/default_overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ type ibcModule struct {
// DefaultGenesis returns custom x/ibc module genesis state.
func (ibcModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
// per ibc documentation, this value should be 3-5 times the expected block
// time. The expected block time is 15 seconds, therefore this value is 75
// time. The expected block time is 6 seconds, therefore this value is 30
// seconds.
maxBlockTime := appconsts.GoalBlockTime * 5
gs := ibctypes.DefaultGenesisState()
Expand Down
2 changes: 1 addition & 1 deletion pkg/appconsts/consensus_consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ const (
// interval isn't enforced at consensus, the real block interval isn't
// guaranteed to exactly match GoalBlockTime. GoalBlockTime is currently targeted
// through static timeouts (i.e. TimeoutPropose, TimeoutCommit).
GoalBlockTime = time.Second * 15
GoalBlockTime = time.Second * 6
)
4 changes: 2 additions & 2 deletions pkg/appconsts/global_consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const (

// DefaultUpgradeHeightDelay is the number of blocks after a quorum has been
// reached that the chain should upgrade to the new version. Assuming a block
// interval of 12 seconds, this is 7 days.
DefaultUpgradeHeightDelay = int64(7 * 24 * 60 * 60 / 12) // 7 days * 24 hours * 60 minutes * 60 seconds / 12 seconds per block = 50,400 blocks.
// interval of 6 seconds, this is 7 days.
DefaultUpgradeHeightDelay = int64(7 * 24 * 60 * 60 / 6) // 7 days * 24 hours * 60 minutes * 60 seconds / 6 seconds per block = 100,800 blocks.
)

var (
Expand Down

0 comments on commit bacaa84

Please sign in to comment.