-
Couldn't load subscription status.
- Fork 19
feat: extend validate_bundle criteria
#35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8701420 to
3e92994
Compare
| /// - 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/base/tips/blob/master/docs/API.md#eth_sendbundleethsendbundle---uuid
Can only provide three transactions at once
cf6711a to
155ba20
Compare
155ba20 to
8aa0598
Compare
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