Skip to content

Commit

Permalink
Rename LC test check from root to beacon_root
Browse files Browse the repository at this point in the history
Future light client tests will also incorporate execution payload data.
To avoid confusion, rename the current `root` check to `beacon_root`.
Doing this now, as ethereum#3066 already requires LC test runners to update.
  • Loading branch information
etan-status committed Oct 27, 2022
1 parent aac851f commit 990866d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ def get_checks(store):
return {
"finalized_header": {
'slot': int(store.finalized_header.slot),
'root': encode_hex(store.finalized_header.hash_tree_root()),
'beacon_root': encode_hex(store.finalized_header.hash_tree_root()),
},
"optimistic_header": {
'slot': int(store.optimistic_header.slot),
'root': encode_hex(store.optimistic_header.hash_tree_root()),
'beacon_root': encode_hex(store.optimistic_header.hash_tree_root()),
},
}

Expand Down
4 changes: 2 additions & 2 deletions tests/formats/light_client/sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Each step includes checks to verify the expected impact on the `store` object.
```yaml
finalized_header: {
slot: int, -- Integer value from store.finalized_header.slot
root: string, -- Encoded 32-byte value from store.finalized_header.hash_tree_root()
beacon_root: string, -- Encoded 32-byte value from store.finalized_header.hash_tree_root()
}
optimistic_header: {
slot: int, -- Integer value from store.optimistic_header.slot
root: string, -- Encoded 32-byte value from store.optimistic_header.hash_tree_root()
beacon_root: string, -- Encoded 32-byte value from store.optimistic_header.hash_tree_root()
}
```

Expand Down

0 comments on commit 990866d

Please sign in to comment.