aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2016-05-04 17:24:19 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2016-05-04 17:24:19 -0400
commitaedc910c844d79713f5e544a211ceabf4372c687 (patch)
tree1a50e59ce8cfffe8742142a4c651396c2391552a /main.go
parentebeffe49049d06a31e7f9497e3f6d13f0d50d5ce (diff)
downloadpos-aedc910c844d79713f5e544a211ceabf4372c687.tar.gz
Comments cleanup, remove some more useless code
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files changed, 2 insertions, 11 deletions
diff --git a/main.go b/main.go
index 33b2de2..2058437 100644
--- a/main.go
+++ b/main.go
@@ -7,15 +7,6 @@ import (
"runtime/pprof"
)
-type Prover struct {
- Merkle
-}
-
-func NewProver(height int64, fname string, mtype string) *Prover {
- m := NewMerkle(mtype, height, fname)
- return &Prover{m}
-}
-
func main() {
height := flag.Int64("height", 0, "number of nodes is 2 ** height - 1")
fname := flag.String("db", "test.db", "filename for the database")
@@ -30,8 +21,8 @@ func main() {
pprof.StartCPUProfile(f)
defer pprof.StopCPUProfile()
- p := NewProver(*height, *fname, *mtype)
- p.Build()
+ m := NewMerkle(*mtype, *height, *fname)
+ m.Build()
/*
fmt.Println(root)
id := p.Size() / 2