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 tracing to validation code for debugging / performance evaluation #20

Merged
merged 16 commits into from
Dec 13, 2023

Conversation

ckoopmann
Copy link
Collaborator

@ckoopmann ckoopmann commented Nov 24, 2023

Mostly this PR is meant to add log emission to the Validation api for the purpose of debugging and performance analysis.
In addition I:

  • Moved the specific validation logic into a helper class ValidationRequest
  • Changed the code to get data from the ExcutionPayload that was sent with the request instead of the parsed log. (since the block hash is verified to be consistent, those values should always be the same)
  • Had to change to the "nightly" toolchain since I am using the result_option_inspect rust feature which is about to be stabilized in upcoming version version 1.76 (see stabilization pr). Once the stable toolchain is on 1.76 we can switch back to that.

closes #9

@ckoopmann ckoopmann marked this pull request as draft November 24, 2023 06:33
@ckoopmann ckoopmann marked this pull request as ready for review November 27, 2023 09:03
Copy link
Contributor

@alextes alextes left a comment

Choose a reason for hiding this comment

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

helper class

Don't go all Java on me now 😅 .

@ckoopmann ckoopmann merged commit 6cd0468 into main Dec 13, 2023
1 check passed
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.

Add / Improve logging
2 participants