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

Submit message with execution proof #1158

Merged
merged 7 commits into from
Mar 20, 2024

Conversation

yrong
Copy link
Contributor

@yrong yrong commented Mar 15, 2024

@yrong yrong changed the title Submit message with execution update Submit message with execution proof Mar 18, 2024
@yrong yrong marked this pull request as ready for review March 18, 2024 04:46
Copy link
Contributor

@claravanstaden claravanstaden left a comment

Choose a reason for hiding this comment

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

Looks good!! Such a good change. 😄 I would just cleanup the fixtures command a bit, otherwise great.

relayer/cmd/generate_beacon_data.go Outdated Show resolved Hide resolved
relayer/cmd/generate_beacon_data.go Outdated Show resolved Hide resolved
relayer/cmd/generate_beacon_data.go Outdated Show resolved Hide resolved
relayer/cmd/generate_beacon_data.go Outdated Show resolved Hide resolved
Comment on lines 200 to 204
if !inboundFixturesOnly {
err = writeJSONToFile(initialSync, fmt.Sprintf("%s/%s", pathToBeaconTestFixtureFiles, "initial-checkpoint.json"))
if err != nil {
return err
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be cleaner and clearer to just create a new command than adding all these if !inboundFixturesOnly {.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

relayer/relays/execution/main.go Outdated Show resolved Hide resolved
Comment on lines +166 to +171
inboundMsg.Proof.ExecutionProof = executionProof

logger.WithFields(logrus.Fields{
"EventLog": inboundMsg.EventLog,
"Proof": inboundMsg.Proof,
}).Debug("Generated message from Ethereum log")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we maybe log out the containing execution header (or beacon header) hash here? For easier debugging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both are sub-fields of Proof so should already be in the log.

@yrong yrong requested a review from vgeddes March 19, 2024 10:54
@yrong yrong merged commit 96aea30 into main Mar 20, 2024
@yrong yrong deleted the ron/submit-inbound-message-with-execution-update branch March 20, 2024 08:08
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.

2 participants