Skip to content

Feat/header injection and feat/jsonrpc_error_code_failover#6

Open
lucasjoaquimDH wants to merge 3 commits intoBlockPILabs:mainfrom
lucasjoaquimDH:feat/header_injection
Open

Feat/header injection and feat/jsonrpc_error_code_failover#6
lucasjoaquimDH wants to merge 3 commits intoBlockPILabs:mainfrom
lucasjoaquimDH:feat/header_injection

Conversation

@lucasjoaquimDH
Copy link

This PR introduces two per-node configuration extensions:

Config-driven failover via jsonrpc_error_code_failover (int array): when an upstream JSON-RPC error.code (or equivalent HTTP status) matches the configured list, the request is retried against another endpoint and the current node is put into a temporary in-memory cooldown.

Per-node request headers via headers (string map): custom headers are injected into upstream requests and are cleared between retries/failovers to avoid leaking headers across providers.

It also updates the load balancer to properly skip nodes under cooldown and refreshes the README with example configurations.

…, an int array that if any of the values match the jsonrpc error code, make the request failover
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.

1 participant