BinaryMerkleTreeErrors
Errors
InvalidNodeIndex
The provided node index is invalid.
The node index should be less than 2^{height}.
error InvalidNodeIndex(uint256 nodeIndex, uint256 height);
Parameters
| Name | Type | Description |
|---|---|---|
nodeIndex | uint256 | The node index in its level |
height | uint256 | The binary Merkle tree height |
DriveTooLarge
A drive size too large was provided.
error DriveTooLarge(uint256 log2DriveSize, uint256 maxLog2DriveSize);
Parameters
| Name | Type | Description |
|---|---|---|
log2DriveSize | uint256 | The log2 size of the drive |
maxLog2DriveSize | uint256 | The maximum log2 size of a drive |
DataBlockTooLarge
A data block size too large was provided.
error DataBlockTooLarge(uint256 log2DataBlockSize, uint256 maxLog2DataBlockSize);
Parameters
| Name | Type | Description |
|---|---|---|
log2DataBlockSize | uint256 | The log2 size of the data block |
maxLog2DataBlockSize | uint256 | The maximum log2 size of a data block |
DriveSmallerThanDataBlock
A drive size smaller than the data block size was provided.
error DriveSmallerThanDataBlock(uint256 log2DriveSize, uint256 log2DataBlockSize);
Parameters
| Name | Type | Description |
|---|---|---|
log2DriveSize | uint256 | The log2 size of the drive |
log2DataBlockSize | uint256 | The log2 size of the data block |
DriveSmallerThanData
A drive too small to fit the data was provided.
error DriveSmallerThanData(uint256 driveSize, uint256 dataSize);
Parameters
| Name | Type | Description |
|---|---|---|
driveSize | uint256 | The size of the drive |
dataSize | uint256 | The size of the data |
UnexpectedFinalStackDepth
An unexpected stack error occurred.
Expected final stack depth to be 1.
error UnexpectedFinalStackDepth(uint256 stackDepth);
Parameters
| Name | Type | Description |
|---|---|---|
stackDepth | uint256 | The final stack depth |