aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dexcon-simulation-with-scheduler/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dexcon-simulation-with-scheduler/main.go')
-rw-r--r--cmd/dexcon-simulation-with-scheduler/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/dexcon-simulation-with-scheduler/main.go b/cmd/dexcon-simulation-with-scheduler/main.go
index 8d59825..d06e6e0 100644
--- a/cmd/dexcon-simulation-with-scheduler/main.go
+++ b/cmd/dexcon-simulation-with-scheduler/main.go
@@ -105,7 +105,9 @@ func main() {
test.NewStopByConfirmedBlocks(blockPerNode, apps, dbs))
now := time.Now().UTC()
for _, v := range nodes {
- v.Bootstrap(sch, now)
+ if err := v.Bootstrap(sch, now); err != nil {
+ panic(err)
+ }
}
// Run the simulation.
sch.Run(cfg.Scheduler.WorkerNum)
@@ -126,6 +128,7 @@ func main() {
if err := pprof.WriteHeapProfile(f); err != nil {
log.Fatal("could not write memory profile: ", err)
}
+ // #nosec G104
f.Close()
}