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

[Merge] Implement engine_consensusValidated EE API function #4401

Merged

Conversation

Nashatyrev
Copy link
Contributor

@Nashatyrev Nashatyrev commented Sep 22, 2021

PR Description

Based atop of PR #4396

Just override the topmost BlockProcessor.processAndValidateBlock() method (which is called directly from ForkChoice.onBlock()) in the BlockProcessorMerge and invoke engine_consensusValidated()

  • with a VALID result if the processAndValidateBlock() completes normally and returns transitioned BeaconState
  • with an INVALID result if a StateTransitionException occurs

Fixed Issue(s)

A part of #4346

Documentation

  • I thought about documentation and added the documentation label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

…cution-service-refactor

# Conflicts:
#	ethereum/core/src/testFixtures/java/tech/pegasys/teku/core/BlockProposalTestUtil.java
#	ethereum/spec/src/main/java/tech/pegasys/teku/spec/executionengine/ExecutionEngineService.java
#	ethereum/spec/src/main/java/tech/pegasys/teku/spec/logic/common/util/ExecutionPayloadUtil.java
#	validator/coordinator/src/main/java/tech/pegasys/teku/validator/coordinator/BlockFactory.java
…utionEngineService and incorporate events listening logic there
…api-fork-choice-updated

# Conflicts:
#	ethereum/spec/src/main/java/tech/pegasys/teku/spec/executionengine/ExecutionEngineChannel.java
#	services/powchain/src/main/java/tech/pegasys/teku/services/powchain/execution/ExecutionEngineChannelImpl.java
#	services/powchain/src/main/java/tech/pegasys/teku/services/powchain/execution/ExecutionEngineService.java
…api-consensus-validated

# Conflicts:
#	ethereum/spec/src/main/java/tech/pegasys/teku/spec/executionengine/ExecutionEngineChannel.java
#	services/powchain/src/main/java/tech/pegasys/teku/services/powchain/execution/ExecutionEngineChannelImpl.java
#	services/powchain/src/main/java/tech/pegasys/teku/services/powchain/execution/client/ExecutionEngineClient.java
#	services/powchain/src/main/java/tech/pegasys/teku/services/powchain/execution/client/Web3JExecutionEngineClient.java
@Nashatyrev Nashatyrev force-pushed the merge/ee-api-consensus-validated branch from 2446500 to 58e5da9 Compare September 22, 2021 15:16
@tbenr tbenr self-requested a review September 22, 2021 16:06
Copy link
Contributor

@tbenr tbenr left a comment

Choose a reason for hiding this comment

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

LGTM a double-check from @mkalinin could be nice

…api-consensus-validated

# Conflicts:
#	ethereum/spec/src/main/java/tech/pegasys/teku/spec/executionengine/ExecutionEngineChannel.java
Copy link

@mkalinin mkalinin left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Nashatyrev Nashatyrev merged commit 1fdad8c into Consensys:merge-interop Sep 23, 2021
@Nashatyrev Nashatyrev deleted the merge/ee-api-consensus-validated branch November 18, 2021 16:33
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.

3 participants