AccQueue
This contract defines a Merkle tree where each leaf insertion only updates a subtree. To obtain the main tree root, the contract owner must merge the subtrees together. Merging subtrees requires at least 2 operations: mergeSubRoots(), and merge(). To get around the gas limit, the mergeSubRoots() can be performed in multiple transactions.
MAX_DEPTH
uint256 MAX_DEPTH
Queue
A Queue is a 2D array of Merkle roots and indices which represents nodes in a Merkle tree while it is progressively updated.
struct Queue {
uint256[4][33] levels;
uint256[33] indices;
}
subDepth
uint256 subDepth
hashLength
uint256 hashLength