diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2016-05-05 22:31:39 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2016-05-05 22:31:39 -0400 |
| commit | be4c150fe17c4869e80acd2a18a380aa91c49d65 (patch) | |
| tree | 8b60a7f235afc5db560afd3ef91e2b5378c8c6f9 /merkle_test.go | |
| parent | 38f36429617583277028cc7faaf615d3607e827c (diff) | |
| download | pos-be4c150fe17c4869e80acd2a18a380aa91c49d65.tar.gz | |
Parallelizing the DFS construction (huge performance gain!)
Diffstat (limited to 'merkle_test.go')
| -rw-r--r-- | merkle_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/merkle_test.go b/merkle_test.go index c10d17c..b2dc9be 100644 --- a/merkle_test.go +++ b/merkle_test.go @@ -13,8 +13,9 @@ import ( const N = 200000 func testMerkle(mtype string) bool { + m := NewMerkle(mtype, 5, "test.db") - root := m.Build() + root := m.Build(true) id := m.Size() / 2 proof := m.Proof(id) v := verify(id, proof) |
