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

fix(evmengine): handle engine errors #372

Merged
merged 4 commits into from
Nov 28, 2024
Merged

Conversation

0xHansLee
Copy link
Contributor

This PR is the commit from Omni to handle errors of engineAPI (omni-network/omni#2469).

issue: none

@@ -29,6 +35,11 @@ func makeProcessProposalRouter(app *App) *baseapp.MsgServiceRouter {
// It also updates some external state.
func makeProcessProposalHandler(router *baseapp.MsgServiceRouter, txConfig client.TxConfig) sdk.ProcessProposalHandler {
return func(ctx sdk.Context, req *abci.RequestProcessProposal) (*abci.ResponseProcessProposal, error) {
// Only allow 10s to process a proposal. Reject proposal otherwise.
timeoutCtx, timeoutCancel := context.WithTimeout(ctx.Context(), processTimeout)
Copy link
Contributor

Choose a reason for hiding this comment

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

Here in the comment it says allowing 10s to process, but processTimeout is set to 1 Minute. Do I miss anything here?

@0xHansLee 0xHansLee force-pushed the hans/handle-engine-errors branch from b9e0b91 to 94aa23e Compare November 25, 2024 14:09
@0xHansLee 0xHansLee force-pushed the hans/handle-engine-errors branch from d37a1e0 to 4845b9f Compare November 28, 2024 01:10
@0xHansLee 0xHansLee merged commit 45f1946 into main Nov 28, 2024
6 checks passed
@0xHansLee 0xHansLee deleted the hans/handle-engine-errors branch November 28, 2024 01:14
Copy link

Binary uploaded successfully 🎉

📦 Version Name: 0.13.1-unstable-45f1946
📦 Download Source: AWS S3

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