Add header-based configuration override for QuickNode integration#185
Merged
Add header-based configuration override for QuickNode integration#185
Conversation
Implements X-Flashbots-Origin-ID header support to enable guaranteed refund collection for enterprise partners like QuickNode. Changes: - Add presets field to CustomersConfig for header-based enforcement - Implement getEffectiveParameters() method with header override logic - Add graceful degradation for invalid preset configurations - Include unit tests for preset parsing and header override behavior When X-Flashbots-Origin-ID header is present, preset configuration takes precedence over URL parameters, ensuring partners receive guaranteed refund percentages. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
X-Flashbots-Originheader support for guaranteed refund collectionImplementation Details
presetsfield with graceful error handlinggetEffectiveParameters()method checks header first, falls back to URL parsingKey Behavior
When
X-Flashbots-Originheader is present:Testing
Configuration Changes Required
For Testing (Sepolia testnet)
Add to
devops/k8s/eth-l1-testnets/sepolia/protect/rpc/configs/customers.yaml:For Production (when QuickNode provides requirements)
Add to
devops/k8s/eth-l1-prod/protect-old/rpc.yaml:Testing Plan
X-Flashbots-Origin-ID: test-header🤖 Generated with Claude Code