increase root history size

This commit is contained in:
Alexey 2021-10-29 18:16:30 +03:00
parent 9cf7dc384d
commit 3fea84a759
No known key found for this signature in database
GPG Key ID: C77958099D784E76

View File

@ -32,7 +32,7 @@ contract MerkleTreeWithHistory is Initializable {
// it removes index range check on every interaction
mapping(uint256 => bytes32) public filledSubtrees;
mapping(uint256 => bytes32) public roots;
uint32 public constant ROOT_HISTORY_SIZE = 30;
uint32 public constant ROOT_HISTORY_SIZE = 100;
uint32 public currentRootIndex = 0; // todo remove
uint32 public nextIndex = 0;