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

Save simulated block value to database #630

Merged
merged 3 commits into from
Jul 23, 2024
Merged

Save simulated block value to database #630

merged 3 commits into from
Jul 23, 2024

Conversation

avalonche
Copy link
Collaborator

📝 Summary

Adds "block value" reflecting the simulated block value (as opposed to the block's bid value) to the block validation api. This is then saved to the relay db, but it is not exposed in the data api.

⛱ Motivation and Context

Improve transparency and data collection by saving a bid's true block value after simulation. This allows more visibility into builder subsidies in blocks.

📚 References


✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

metachris
metachris previously approved these changes Jun 25, 2024
Copy link
Collaborator

@metachris metachris left a comment

Choose a reason for hiding this comment

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

lgtm

database/types.go Outdated Show resolved Hide resolved
@avalonche avalonche merged commit cf6fd5b into main Jul 23, 2024
4 checks passed
@avalonche avalonche deleted the add-block-value branch July 23, 2024 22:22
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