mirror of
https://github.com/status-im/simulation.git
synced 2025-02-20 10:58:23 +00:00
Tune default gossip parameters
This commit is contained in:
parent
7d4ace2b59
commit
c56c1fe27f
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user