Skip to content

Conversation

@wlawt
Copy link
Contributor

@wlawt wlawt commented Oct 23, 2025

Overview

This PR aligns the validate_bundle fn with the limitations set in the API spec. More ongoing thought will be going into what more criteria do we want in validating bundles. But for now, this is fine.

Tests

  • Unit tests

Base automatically changed from create-bundle to master October 23, 2025 19:51
@wlawt wlawt force-pushed the validation-criteria branch from 8701420 to 3e92994 Compare October 23, 2025 19:54
@wlawt wlawt marked this pull request as ready for review October 23, 2025 19:56
/// - The bundle's max_timestamp is not more than 1 hour in the future
/// - The bundle's gas limit is not greater than the maximum allowed gas limit
pub fn validate_bundle(bundle: &EthSendBundle, bundle_gas: u64) -> RpcResult<()> {
/// - The bundle can only contain 3 transactions at once
Copy link

Choose a reason for hiding this comment

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

Where does this constraint come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wlawt wlawt requested a review from niran October 24, 2025 13:36
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