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

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