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

H-3 Non-deterministic execution of ExecutionPayload #300

Open
christianvari opened this issue Oct 24, 2024 · 0 comments
Open

H-3 Non-deterministic execution of ExecutionPayload #300

christianvari opened this issue Oct 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@christianvari
Copy link

Description and context

ABCI applications must implement deterministic finite-state machines to ensure secure replication by the CometBFT consensus engine. Block execution over the Consensus Connection must be strictly deterministic: given the same ordered set of requests, all nodes must compute identical responses for BeginBlock, DeliverTx, EndBlock, and Commit. This is crucial because these responses are included in the header of the next block, either as a Merkle root or directly, requiring all nodes to agree on the exact state.

To maintain determinism, application state changes should only be triggered by block execution events and not through any external inputs.

However, non-determinism can happen in the ExecutionPayload message handler. During transaction execution, the handler makes a call to a Geth node, which introduces variability due to infrastructure and network conditions.

This could result in nodes returning different values, preventing them from producing the same block, and leading to chain halts if some nodes experience connection issues.

Solution recommendation

A possible solution would be to move all the logic involving calls to external nodes outside of the DeliverTx function. For example it could be done when accepting the proposed block.

@christianvari christianvari added the bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants