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

Show mev and extra data in block logs #7661

Merged
merged 11 commits into from
Oct 28, 2024
Merged

Show mev and extra data in block logs #7661

merged 11 commits into from
Oct 28, 2024

Conversation

benaadams
Copy link
Member

@benaadams benaadams commented Oct 26, 2024

image

Changes

  • Display the validator rewards
  • Display whether the block is mev
  • Optionally display sanitised (for Utf8, no invalid, control chars etc) extra data (on by default)

Types of changes

What types of changes does your code introduce?

  • New feature (a non-breaking change that adds functionality)

Testing

Requires testing

  • No

@benaadams benaadams requested a review from rubo as a code owner October 26, 2024 19:50
Comment on lines +285 to +290
private static HashSet<AddressAsKey> _alternateMevPayees = new()
{
new Address("0xa83114A443dA1CecEFC50368531cACE9F37fCCcb"), // Extra data as: beaverbuild.org
new Address("0x9FC3da866e7DF3a1c57adE1a97c9f00a70f010c8"), // Extra data as: Titan (titanbuilder.xyz)
new Address("0x0b92619DdE55C0cbf828d32993a7fB004E00c84B"), // Extra data as: Builder+ www.btcs.com/builder
};
Copy link
Member

Choose a reason for hiding this comment

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

Do we want it hardcoded here? Aren't there more?

Copy link
Member Author

Choose a reason for hiding this comment

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

These aren't the actual main builders; just ones pretending to be them

95% of mev blocks are picked up by the main pattern where the GasBeneficiary pays the validator in the last tx; these ones pay from a different source.

Really should be in config rather than code, but I have only seen 3 so far

src/Nethermind/Nethermind.Core/Extensions/Bytes.cs Outdated Show resolved Hide resolved
src/Nethermind/Nethermind.Core/Extensions/Bytes.cs Outdated Show resolved Hide resolved
src/Nethermind/Nethermind.Core/Extensions/Bytes.cs Outdated Show resolved Hide resolved
src/Nethermind/Nethermind.Core/Extensions/Bytes.cs Outdated Show resolved Hide resolved
src/Nethermind/Nethermind.Core/Extensions/Bytes.cs Outdated Show resolved Hide resolved
src/Nethermind/Nethermind.Core/Extensions/Bytes.cs Outdated Show resolved Hide resolved
@benaadams benaadams merged commit 3138f0a into master Oct 28, 2024
75 checks passed
@benaadams benaadams deleted the include-mev branch October 28, 2024 11:51
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