MCPcopy
hub / github.com/ethereum/EIPs / gti_merge

Function gti_merge

assets/eip-7745/binary_tree.py:137–143  ·  view source on GitHub ↗

Returns the generalized tree index that has a relative position sub_index from the position index.

(index, sub_index: U256)

Source from the content-addressed store, hash-verified

135
136
137def 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
146def gti_split_below(index: U256, level: Uint) -> U256:

Callers 7

prepare_indexFunction · 0.85
add_to_filter_mapsFunction · 0.85
add_log_entryFunction · 0.85
add_entry_metaFunction · 0.85
index_entry_gtiFunction · 0.85
map_row_gtiFunction · 0.85
prog_list_chunk_gtiFunction · 0.85

Calls 1

gti_heightFunction · 0.85

Tested by

no test coverage detected