Skip to content

feat(rpc): per-request HL compliance multiplexing#123

Merged
sprites0 merged 1 commit intonode-builderfrom
feat/hl-node-compliance-multiplexed
Mar 16, 2026
Merged

feat(rpc): per-request HL compliance multiplexing#123
sprites0 merged 1 commit intonode-builderfrom
feat/hl-node-compliance-multiplexed

Conversation

@sprites0
Copy link
Collaborator

@sprites0 sprites0 commented Mar 15, 2026

Summary

  • Split hl_node_compliance into submodules (layer, rpc, server_restart)
  • Add HTTP middleware that reads ?hl=true/?hl=false query parameter per request
  • Add --hl-node-compliant-multiplexed CLI flag to enable per-request mode
  • Single RPC endpoint can serve both filtered and unfiltered responses

Test plan

  • Test with --hl-node-compliant-multiplexed --hl-node-compliant (default filtered)
  • Test with --hl-node-compliant-multiplexed only (default unfiltered)
  • Verify ?hl=true returns filtered responses
  • Verify ?hl=false returns unfiltered responses

Resolves #113

🤖 Generated with Claude Code

@sprites0 sprites0 force-pushed the feat/hl-node-compliance-multiplexed branch from 77d29d6 to a4b0856 Compare March 16, 2026 03:03
…eter

Split hl_node_compliance into submodules and add HTTP middleware that
reads the `?hl=true` or `?hl=false` query parameter per request.
This allows a single RPC endpoint to serve both filtered (HL-compliant)
and unfiltered responses based on the caller's preference.

- Add tower Layer/Service that injects the `hl` flag into http::Extensions
- Add server_restart module to replace the default RPC servers with
  the compliance-aware middleware
- Add --hl-node-compliant-multiplexed CLI flag
- Add deps: http, tower, tower-http, reth-rpc-builder, reth-ipc, reth-rpc-layer

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sprites0 sprites0 force-pushed the feat/hl-node-compliance-multiplexed branch from a4b0856 to 0615602 Compare March 16, 2026 03:09
@sprites0 sprites0 marked this pull request as ready for review March 16, 2026 03:36
@sprites0 sprites0 merged commit 4632afc into node-builder Mar 16, 2026
4 checks passed
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.

Per-request hl-node-compliant mode

1 participant