Returns the generalized tree index that has a relative position sub_index from the position index.
(index, sub_index: U256)
| 135 | |
| 136 | |
| 137 | def gti_merge(index, sub_index: U256) -> U256: |
| 138 | """ |
| 139 | Returns the generalized tree index that has a relative position sub_index |
| 140 | from the position index. |
| 141 | """ |
| 142 | sub_height = gti_height(sub_index) |
| 143 | return (index - 1) << sub_height + sub_index |
| 144 | |
| 145 | |
| 146 | def gti_split_below(index: U256, level: Uint) -> U256: |
no test coverage detected