mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-11-22 09:47:13 +01:00
merkle tree levels adjusting
This commit is contained in:
parent
15b573b5a1
commit
c31c3f49e0
@ -26,7 +26,7 @@ contract('MerkleTreeWithHistory', async accounts => {
|
|||||||
let miMC
|
let miMC
|
||||||
const sender = accounts[0]
|
const sender = accounts[0]
|
||||||
const emptyAddress = '0x0000000000000000000000000000000000000000'
|
const emptyAddress = '0x0000000000000000000000000000000000000000'
|
||||||
const levels = 5
|
const levels = 16
|
||||||
const zeroValue = 1337
|
const zeroValue = 1337
|
||||||
let snapshotId
|
let snapshotId
|
||||||
let prefix = 'test'
|
let prefix = 'test'
|
||||||
@ -137,9 +137,9 @@ contract('MerkleTreeWithHistory', async accounts => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
it.skip('creation using 1000 elements', async () => {
|
it.skip('creation using 30000 elements', async () => {
|
||||||
const elements = []
|
const elements = []
|
||||||
for(let i = 2000; i < 2001; i++) {
|
for(let i = 1000; i < 31001; i++) {
|
||||||
elements.push(i)
|
elements.push(i)
|
||||||
}
|
}
|
||||||
const storage = new JsStorage()
|
const storage = new JsStorage()
|
||||||
@ -157,7 +157,7 @@ contract('MerkleTreeWithHistory', async accounts => {
|
|||||||
// 2,7 GHz Intel Core i7
|
// 2,7 GHz Intel Core i7
|
||||||
// 1000 : 1949.084ms
|
// 1000 : 1949.084ms
|
||||||
// 10000: 19456.220ms
|
// 10000: 19456.220ms
|
||||||
// 30000: 57293.640ms
|
// 30000: 63406.679ms
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user