Skip to content

refactor: use task executor in payload handler#377

Merged
avalonche merged 3 commits intoflashbots:mainfrom
okx:niven/refactor-task-exec
Feb 4, 2026
Merged

refactor: use task executor in payload handler#377
avalonche merged 3 commits intoflashbots:mainfrom
okx:niven/refactor-task-exec

Conversation

@sieniven
Copy link
Contributor

@sieniven sieniven commented Feb 2, 2026

📝 Summary

Use the in-built reth's task executor inside the payload handler.

✅ I have completed the following steps:

  • [✅] Run make lint
  • [✅] Run make test
  • Added tests (if applicable)

Copy link
Contributor

@akundaz akundaz left a comment

Choose a reason for hiding this comment

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

What is the purpose of this?

This also spawns flashblock execution on a non-blocking task instead of a blocking one

@sieniven
Copy link
Contributor Author

sieniven commented Feb 4, 2026

@akundaz thanks for the spot, resolved the issue to use a blocking thread instead (cf0c020). The PR's intention is refactor and use the inbuilt reth's TaskExecutor pattern for spawning tasks, which will include reth's shutdown signals handling, tracing, metrics, etc

@avalonche avalonche enabled auto-merge (squash) February 4, 2026 03:36
@avalonche avalonche merged commit 6873bbf into flashbots:main Feb 4, 2026
4 checks passed
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