mirror of
https://github.com/tendermint/tendermint.git
synced 2026-03-27 12:05:02 +00:00
Revert "statesync: Increasing min num of peers"
This reverts commit 4f8bde0d87.
This commit is contained in:
@@ -279,7 +279,7 @@ func (r *Reactor) OnStart(ctx context.Context) error {
|
||||
"trustHeight", to.Height, "useP2P", r.cfg.UseP2P)
|
||||
|
||||
if r.cfg.UseP2P {
|
||||
if err := r.waitForEnoughPeers(ctx, 3); err != nil {
|
||||
if err := r.waitForEnoughPeers(ctx, 2); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ func (r *Reactor) Sync(ctx context.Context) (sm.State, error) {
|
||||
|
||||
// We need at least two peers (for cross-referencing of light blocks) before we can
|
||||
// begin state sync
|
||||
if err := r.waitForEnoughPeers(ctx, 3); err != nil {
|
||||
if err := r.waitForEnoughPeers(ctx, 2); err != nil {
|
||||
return sm.State{}, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user