aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/dexcon-simulation
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-09-05 10:32:25 +0800
committerGitHub <noreply@github.com>2018-09-05 10:32:25 +0800
commit41641e10286dd7b1fdcced6a51157e061d545ef5 (patch)
tree69129be3df35d7abde7b94ef5ceec828787b3498 /cmd/dexcon-simulation
parent04a63a22a24abaaa91b1d981e6d95260d80dadf4 (diff)
downloadtangerine-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar
tangerine-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.gz
tangerine-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.bz2
tangerine-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.lz
tangerine-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.xz
tangerine-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.tar.zst
tangerine-consensus-41641e10286dd7b1fdcced6a51157e061d545ef5.zip
misc: Polish BA. (#94)
Diffstat (limited to 'cmd/dexcon-simulation')
-rw-r--r--cmd/dexcon-simulation/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dexcon-simulation/main.go b/cmd/dexcon-simulation/main.go
index def4ac9..017cca5 100644
--- a/cmd/dexcon-simulation/main.go
+++ b/cmd/dexcon-simulation/main.go
@@ -35,6 +35,7 @@ var initialize = flag.Bool("init", false, "initialize config file")
var configFile = flag.String("config", "", "path to simulation config file")
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to `file`")
var memprofile = flag.String("memprofile", "", "write memory profile to `file`")
+var legacy = flag.Bool("legacy", false, "legacy consensus protocal")
func main() {
flag.Parse()
@@ -65,7 +66,7 @@ func main() {
defer pprof.StopCPUProfile()
}
- simulation.Run(*configFile)
+ simulation.Run(*configFile, *legacy)
if *memprofile != "" {
f, err := os.Create(*memprofile)