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

eth/catalyst: disable full payload when not in dev mode #27921

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

rjl493456442
Copy link
Member

@rjl493456442 rjl493456442 commented Aug 14, 2023

This PR fixes an issue in engine API. GetPayload supports two mode: full or non-full.

  • In full mode, GetPayload will block until a full block is generated
    ("full block" doesn't mean it must include transaction, but it will try to pack as many transactions
    as possible into block).

  • In non-full mode, GetPayload will return immediately with any available payload(can be empty)

The non-full mode is chosen as default mode in engine API. This is necessary in case the block is
generated very slow(e.g. some attack transactions fulfill the pool) and empty block will always
be returned in order to not miss the slot.

This default option is modified in #27736

@holiman holiman changed the title eth/catalyst: only enable full payload in dev mode eth/catalyst: disable full payload when not in dev mode Aug 21, 2023
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@holiman
Copy link
Contributor

holiman commented Aug 21, 2023

I changed the title to make it not seem like a change that only concerned dev-mode

Copy link
Member

@MariusVanDerWijden MariusVanDerWijden left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe added this to the 1.13.0 milestone Aug 23, 2023
@karalabe karalabe merged commit bce5c46 into ethereum:master Aug 23, 2023
1 check passed
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
eth/catalyst: only enable full payload in dev mode
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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.

4 participants