Skip to content

Commit

Permalink
Add sync protocol changes
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed Jul 3, 2024
1 parent 4ec2695 commit 3eefb83
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pysetup/spec_builders/eip7732.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ def hardcoded_custom_type_dep_constants(cls, spec_object) -> Dict[str, str]:
'PTC_SIZE': spec_object.preset_vars['PTC_SIZE'].value,
'MAX_PAYLOAD_ATTESTATIONS': spec_object.preset_vars['MAX_PAYLOAD_ATTESTATIONS'].value,
}

@classmethod
def hardcoded_ssz_dep_constants(cls) -> Dict[str, str]:
constants = {
'EXECUTION_PAYLOAD_GINDEX': 'GeneralizedIndex(26)',
}
return {**super().hardcoded_ssz_dep_constants(), **constants}
20 changes: 20 additions & 0 deletions specs/_features/eip7732/light-client/sync-protocol.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EIP-7732 Light Client -- Sync Protocol

**Notice**: This document is a work-in-progress for researchers and implementers.

## Table of contents

<!-- TOC -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [Modified Constants](#modified-constants)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
<!-- /TOC -->

## Modified Constants

| Name | Value |
| - | - |
| `EXECUTION_PAYLOAD_GINDEX` | `get_generalized_index(BeaconBlockBody, 'signed_execution_payload_header')` (= 25) |

0 comments on commit 3eefb83

Please sign in to comment.