Skip to content

Conversation

akundaz
Copy link
Contributor

@akundaz akundaz commented Sep 11, 2025

📝 Summary

Transactions would appear in the wrong flashblock when flashblock_number_min/flashblock_number_max were set. This was because the params were not being propagated correctly and is fixed with this PR.

Additional changes:

  • Use builder pattern for BundleOpts type
  • Fixed the flashblocks ws bug in tests -- the port wasn't connected properly
  • Created FlashblocksListener to read from the ws ergonomically
  • Added test logging because I wouldn't've been able to figure this out without reading the logs produced by the tests

💡 Motivation and Context

The flashblock min and max bundle params were not being respected


✅ I have completed the following steps:

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

@akundaz akundaz self-assigned this Sep 11, 2025
FBPooledTransaction {
inner: self.inner.with_conditional(conditional),
reverted_hashes: self.reverted_hashes,
flashblock_number_min: None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was overriding the param and making it None, this keeps the param that's already set

@akundaz akundaz force-pushed the ak-fix-bundle-flashblock branch from 1bf60e6 to 7097e1c Compare September 12, 2025 01:49
@akundaz akundaz force-pushed the ak-fix-bundle-flashblock branch from 7097e1c to 552cb2d Compare September 12, 2025 01:53
@akundaz akundaz merged commit abff43f into main Sep 12, 2025
4 checks passed
@akundaz akundaz deleted the ak-fix-bundle-flashblock branch September 12, 2025 02:05
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.

2 participants