github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/internal/test/factory/params.go (about)

     1  package factory
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/ari-anchor/sei-tendermint/types"
     7  )
     8  
     9  // ConsensusParams returns a default set of ConsensusParams that are suitable
    10  // for use in testing
    11  func ConsensusParams() *types.ConsensusParams {
    12  	c := types.DefaultConsensusParams()
    13  	c.Timeout = types.TimeoutParams{
    14  		Commit:              10 * time.Millisecond,
    15  		Propose:             40 * time.Millisecond,
    16  		ProposeDelta:        1 * time.Millisecond,
    17  		Vote:                10 * time.Millisecond,
    18  		VoteDelta:           1 * time.Millisecond,
    19  		BypassCommitTimeout: true,
    20  	}
    21  	c.ABCI.VoteExtensionsEnableHeight = 1
    22  	return c
    23  }