mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 12:14:56 -05:00
Update specs/light_client/merkle_proofs.md
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
@@ -267,7 +267,7 @@ def extract_value_at_path(chunks: Dict[int, Bytes32], typ: Type, path: List[Unio
|
||||
for p in path:
|
||||
if p == '__len__':
|
||||
return deserialize_basic(chunks[root * 2 + 1][:8], uint64)
|
||||
if iissubclass(typ, (List, Bytes)):
|
||||
if issubclass(typ, (List, Bytes)):
|
||||
assert 0 <= p < deserialize_basic(chunks[root * 2 + 1][:8], uint64)
|
||||
pos, start, end = get_item_position(typ, p)
|
||||
root = root * (2 if issubclass(typ, (List, Bytes)) else 1) * next_power_of_two(get_chunk_count(typ)) + pos
|
||||
|
||||
Reference in New Issue
Block a user