Tune default gossip parameters

This commit is contained in:
Ivan Danyliuk 2018-11-01 16:04:01 +01:00
parent 7d4ace2b59
commit c56c1fe27f
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF

View File

@ -5,6 +5,7 @@ import (
"fmt"
"io"
"os"
"time"
"github.com/divan/graphx/graph"
"github.com/status-im/simulation/propagation"
@ -25,7 +26,7 @@ func NewSimulation(algo string, network *graph.Graph) *Simulation {
if algo == "whisperv6" {
sim = whisperv6.NewSimulator(network)
} else {
sim = gossip.NewSimulator(network, 4, 10)
sim = gossip.NewSimulator(network, 4, 400*time.Millisecond)
}
return &Simulation{