From 5335ee1358f95803d347083cef1c8547448cd3ff Mon Sep 17 00:00:00 2001 From: William Banfield Date: Tue, 25 Jan 2022 19:28:43 -0500 Subject: [PATCH] revert making validator set smaller --- internal/consensus/reactor_test.go | 6 +++--- types/params.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/consensus/reactor_test.go b/internal/consensus/reactor_test.go index 4db1ccd81..c0a6445aa 100644 --- a/internal/consensus/reactor_test.go +++ b/internal/consensus/reactor_test.go @@ -712,8 +712,8 @@ func TestReactorValidatorSetChanges(t *testing.T) { cfg := configSetup(t) - nPeers := 4 - nVals := 1 + nPeers := 7 + nVals := 4 states, _, _, cleanup := randConsensusNetWithPeers( ctx, t, @@ -726,7 +726,7 @@ func TestReactorValidatorSetChanges(t *testing.T) { ) t.Cleanup(cleanup) - rts := setup(ctx, t, nPeers, states, 1000) // buffer must be large enough to not deadlock + rts := setup(ctx, t, nPeers, states, 100) // buffer must be large enough to not deadlock for _, reactor := range rts.reactors { state := reactor.state.GetState() diff --git a/types/params.go b/types/params.go index 8a5977e24..4e1532cf6 100644 --- a/types/params.go +++ b/types/params.go @@ -130,7 +130,7 @@ func DefaultSynchronyParams() SynchronyParams { // https://github.com/tendermint/tendermint/issues/7202 return SynchronyParams{ Precision: 50 * time.Millisecond, - MessageDelay: 3 * time.Second, + MessageDelay: 2 * time.Second, } }