Skip to content

feat(block-producer): increase and make max txs per batch and batches per block configurable via CLI#1015

Merged
Mirko-von-Leipzig merged 9 commits into0xMiden:nextfrom
farrellh1:feature-configurable-batch-block-limits
Jul 3, 2025
Merged

feat(block-producer): increase and make max txs per batch and batches per block configurable via CLI#1015
Mirko-von-Leipzig merged 9 commits into0xMiden:nextfrom
farrellh1:feature-configurable-batch-block-limits

Conversation

@farrellh1
Copy link
Contributor

  • Adds CLI arguments to configure the maximum number of transactions per batch (--max-txs-per-batch) and the maximum number of batches per block (--max-batches-per-block) for both standalone and bundled node modes.
  • Updates the default values to match previous behavior (8 per batch, 8 per block), but allows users to override them at runtime.

@farrellh1
Copy link
Contributor Author

Hi, just let you know this PR ready to review @Mirko-von-Leipzig

Copy link
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

Some minor recommendations but otherwise LGTM

@farrellh1
Copy link
Contributor Author

i applied the suggestion @Mirko-von-Leipzig , do i need to resolve the conflict too?

Copy link
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

If you could resolve the conflicts, that would be great. If not I can do it a bit later as well.

Comment on lines +128 to +72
anyhow::bail!(
"max-txs-per-batch ({}) cannot exceed protocol limit ({})",
max_txs_per_batch,
miden_objects::MAX_ACCOUNTS_PER_BATCH
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Apologies, I didn't mark this earlier, but could you also do the same here?

@farrellh1 farrellh1 force-pushed the feature-configurable-batch-block-limits branch from 96a662f to 1c97f0b Compare June 27, 2025 11:56
@farrellh1
Copy link
Contributor Author

i think we should i have a make script for installing some dependencies especially for the linting what do you think @Mirko-von-Leipzig ?

btw i resolved the conflict

@farrellh1 farrellh1 force-pushed the feature-configurable-batch-block-limits branch from a79e069 to da7d3a9 Compare June 27, 2025 13:59
Copy link
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

Thank you; and sorry for the delay!

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 9667262 into 0xMiden:next Jul 3, 2025
5 checks passed
@farrellh1 farrellh1 deleted the feature-configurable-batch-block-limits branch July 3, 2025 19:42
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