mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-06-06 21:59:08 -04:00
fix test of capacity of Merkle tree
This commit is contained in:
parent
ec30e2d357
commit
374dd420f5
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ contract('MerkleTreeWithHistory', accounts => {
|
||||||
zeroValue = 1337
|
zeroValue = 1337
|
||||||
merkleTreeWithHistory = await MerkleTreeWithHistory.new(levels, zeroValue)
|
merkleTreeWithHistory = await MerkleTreeWithHistory.new(levels, zeroValue)
|
||||||
|
|
||||||
for (let i = 0; i < 2**(levels - 1); i++) {
|
for (let i = 0; i < 2**levels; i++) {
|
||||||
await merkleTreeWithHistory.insert(i+42).should.be.fulfilled
|
await merkleTreeWithHistory.insert(i+42).should.be.fulfilled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue