You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
571 B

package factory
import (
"time"
"github.com/tendermint/tendermint/types"
)
// ConsensusParams returns a default set of ConsensusParams that are suitable
// for use in testing
func ConsensusParams() *types.ConsensusParams {
c := types.DefaultConsensusParams()
c.Timeout = types.TimeoutParams{
Commit: 10 * time.Millisecond,
Propose: 40 * time.Millisecond,
ProposeDelta: 1 * time.Millisecond,
Vote: 10 * time.Millisecond,
VoteDelta: 1 * time.Millisecond,
BypassCommitTimeout: true,
}
return c
}