Skip to content

Commit

Permalink
fix(malicious): use constructor NMT options (#2723)
Browse files Browse the repository at this point in the history
Reported by @vgonkivs who is working on a BEFP test and needs to pass
`nmt.NodeVisitor()` in to the malicious package's tree.
  • Loading branch information
rootulp authored Oct 20, 2023
1 parent 6bac86d commit 29a8925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/util/malicious/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (c constructor) NewTree(_ rsmt2d.Axis, axisIndex uint) rsmt2d.Tree {
nmt.NamespaceIDSize(appconsts.NamespaceSize),
nmt.IgnoreMaxNamespace(true),
}
copts = append(copts, c.opts...)
nmtTree := nmt.New(appconsts.NewBaseHashFunc(), copts...)
maliciousTree := &BlindTree{nmtTree}
newTree := wrapper.NewErasuredNamespacedMerkleTree(c.squareSize, axisIndex, copts...)
Expand Down

0 comments on commit 29a8925

Please sign in to comment.