Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial FOCIL implementation #30914

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Conversation

jihoonsong
Copy link

This PR implements initial FOCIL specifications. For more information, please refer to EIP-7805 and this PR.

Copy link

@ensi321 ensi321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pointing out Engine API has incorrect type for inclusion list. Current implementation expects base64 strings whereas the convention and the specs demand hex strings.

I suggest either define inclusion list type and its marshal type in beacon/engine/types.go and let gencodec handles the conversion similar to how ExecutableData is handled. Or manually marshal/unmarshal like how convertRequests handles incoming executionRequests in NewPayloadV4

@jihoonsong
Copy link
Author

I've addressed comments. Thank you very much for spotting out the issue and suggesting solutions! @ensi321

@@ -350,6 +351,48 @@ type ExecutionPayloadBody struct {
Withdrawals []*types.Withdrawal `json:"withdrawals"`
}

// Max size of inclusion list in bytes.
const MaxBytesPerInclusionList = uint64(8192)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this something which will be possibly changed in future?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be changed but not prone to be changed I would say.

@jihoonsong jihoonsong force-pushed the focil branch 2 times, most recently from 9e1f361 to 29b805d Compare March 21, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants