You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2ca2850
Browse filesBrowse the repository at this point in the historyBrowse files
fix(rpc): return -32602 error for eth_getLogs with pending block tag
Reth resolves "pending" as head+1 for log queries and returns [] rather
than coercing to "latest". Arc intentionally hides all pending-block state
for public nodes, so surface this as an explicit -32602 Invalid params error
instead of silently returning [], which makes callers think no logs exist
at the current head.
Changes:
- Add ETH_GET_LOGS_METHOD and PENDING_LOGS_ERROR_CODE constants
- Add pending_logs_error() that parses filter params for pending fromBlock/toBlock
(positional and object-form; case-insensitive; decoupled from Alloy proc-macro names)
- Wire into intercept_or_forward before the null-response path
Fixes#426
0 commit comments