Skip to content

Conversation

ZanCorDX
Copy link
Collaborator

📝 Summary

This PR add a new config:
max_order_execution_duration_warning_us (optional u64): If set, while building a block if an order execution duration is greater than this, we will log a warning with some info about the order.

✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@ZanCorDX ZanCorDX requested a review from dvush as a code owner October 13, 2025 21:54
.max_order_execution_duration_warning
.is_some_and(|max_dur| sim_time > max_dur)
{
warn!(sim_ok,?sim_time,builder_name=self.builder_name,id = ?order.id(),txs = ?order.order.list_txs().iter().map(|(tx, _)| tx.hash()).collect::<Vec<_>>(), "Slow order execution");
Copy link
Contributor

Choose a reason for hiding this comment

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

I found the following fields to be useful:

  • tx from / to (can be only from the first tx or from all txs like you do here)
    *bundle signer

Copy link
Collaborator

Choose a reason for hiding this comment

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

Great idea!!

@ZanCorDX ZanCorDX merged commit 1cc7b47 into develop Oct 14, 2025
3 checks passed
@ZanCorDX ZanCorDX deleted the trace-slow-executions branch October 14, 2025 16:51
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