Skip to content

Conversation

SozinM
Copy link
Collaborator

@SozinM SozinM commented Jun 3, 2025

πŸ“ Summary

Closes #90

πŸ’‘ Motivation and Context


βœ… I have completed the following steps:

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

let da_per_batch = ctx
.da_config
.max_da_block_size()
let da_per_batch = adjusted_max_da_block_limit
Copy link
Contributor

Choose a reason for hiding this comment

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

You are adjusting every flashblock for a builder txn, but only the last one has a builder txn

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, i wrote TODO for this
but could implement it straight away

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be great in the scope of this PR.

@SozinM SozinM force-pushed the msozin/fix-da-flashblocks-builder-tx branch from f800970 to fc9a175 Compare June 3, 2025 13:09
}
let mut total_da_per_batch = da_per_batch;

let last_flashblock = self.config.flashblocks_per_block() - 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

saturating_sub

@SozinM SozinM force-pushed the msozin/fix-da-flashblocks-builder-tx branch from 0d23f66 to 07b9c34 Compare June 3, 2025 14:40
@SozinM SozinM merged commit 503eb2d into main Jun 3, 2025
2 checks passed
@SozinM SozinM deleted the msozin/fix-da-flashblocks-builder-tx branch June 3, 2025 15:03
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.

Account for gas and da limit for builder tx in flashblocks

3 participants