mirror of
https://github.com/tornadocash/tornado-core.git
synced 2025-08-08 14:52:15 -04:00
max leaves count fix
This commit is contained in:
parent
a64f41a44e
commit
9132aeb6d5
3 changed files with 5 additions and 5 deletions
|
@ -58,7 +58,7 @@ contract MerkleTreeWithHistory {
|
|||
|
||||
function _insert(uint256 leaf) internal {
|
||||
uint32 current_index = next_index;
|
||||
require(current_index != 2**(levels - 1), "Merkle tree is full. No more leafs can be added");
|
||||
require(current_index != 2**levels, "Merkle tree is full. No more leafs can be added");
|
||||
next_index += 1;
|
||||
uint256 current_level_hash = leaf;
|
||||
uint256 left;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue