github hiero-ledger/hiero-json-rpc-relay v0.83.0

one hour ago

Highlights

  • eth_getLogs is now protected against huge responses. New limits cap the size of one Mirror Node page, the size of one call's response, the total log memory across the relay, and how many Mirror Node log requests run at once per process.
  • Nonce ordering and the tx pool are on by default.
  • Logging overhaul. The default LOG_LEVEL is now info, the Helm charts switch to JSON logs (one object per line), and there is a new access log.
  • Better Mirror Node visibility. New metrics split Mirror Node call latency into phases, count client timeouts apart from upstream 504s, and measure how often cached blocks get reused. Matching Grafana panels were added.
  • Works with Mirror Node v0.167, which returns balance and nonce as numbers.

⚠️ Upgrade Notes / Behavior Changes

Change Before After
ENABLE_NONCE_ORDERING default false true
TXPOOL_API_ENABLED default false true
LOG_LEVEL default trace info
Helm charts PRETTY_LOGS_ENABLED true (pretty) false (JSON, one object per line)
Helm charts SDK_LOG_LEVEL unset warn
Mirror Node 504 returned as relay HTTP 500 returned as relay HTTP 504
Very large eth_getLogs could exhaust relay memory fails with -32005 once a limit is hit

New Configuration

Variable Default Description
ETH_GET_LOGS_MAX_PAGE_SIZE 8388608 (8 MiB) Max size of one Mirror Node log page. The download stops when a page grows past it, and the call fails with -32005.
ETH_GET_LOGS_MAX_RESPONSE_SIZE 26214400 (25 MiB) Max estimated JSON size of one eth_getLogs response. Once it is exceeded, the call's remaining Mirror Node requests are cancelled.
ETH_GET_LOGS_RELAY_MAX_RESPONSE_SIZE 52428800 (50 MiB) Max log data that all eth_getLogs calls on the relay may hold at the same time.
MIRROR_NODE_LOGS_MAX_CONCURRENT_REQUESTS 0 (disabled) Max Mirror Node log requests in flight per process, with a FIFO queue. With the worker pool on, it is split between the threads. Startup fails if a thread's share reaches its Mirror Node socket limit.
MIRROR_NODE_TIMESTAMP_SLICING_MAX_RETRIES 3 Max failed timestamp slices fetched again in one sliced log fetch after a timeout, network error, 5xx or 429. 0 turns retries off.
MIRROR_NODE_BLOCK_RANGE_CACHE_ENABLED true Whether blocks fetched as a range (for eth_getLogs and eth_feeHistory) are also written to the per-block cache.

MIRROR_NODE_TIMESTAMP_SLICING_CONCURRENCY now covers the whole log retrieval when MIRROR_NODE_LOGS_MAX_CONCURRENT_REQUESTS is enabled.

Enhancements

  • feat: limit size of one eth_getLogs #5994
  • feat: limit total eth_getLogs memory across the relay #5999
  • feat: limit concurrent eth_getLogs MN requests per process #6046
  • feat: activate nonce ordering and tx pool by default #6002
  • feat: walk each block once per pod to compute receipt cumulative gas #6051
  • feat: add logging foundation #6023
  • feat: add one log per line and access log #6033
  • feat: fix json rpc error severity #6025

Observability

  • feat: add MN metrics that split call latency into phases #6041. New metrics: rpc_relay_mirror_node_phase_duration, rpc_relay_mirror_node_upstream_duration, rpc_relay_mirror_node_in_flight_requests (+ _peak), rpc_relay_mirror_node_agent_sockets, rpc_relay_mirror_node_attempt_count, rpc_relay_mirror_node_response_size_bytes, rpc_relay_mirror_node_tick_burst, rpc_relay_mirror_node_json_bigint_parse_count
  • feat: count Mirror Node client timeouts separately from upstream 504s #5997
  • feat: add metrics for Mirror Node client timeouts (Grafana dashboards) #6024
  • feat: add metrics to measure reuse of blocks cached by getBlocksByRange #6032

Bug Fixes

  • fix: return null contractAddress when HTS create call result is empty #6014
  • fix: wrong masking of MN 504 as relay 500 #6027
  • fix: stop caching every block fetched by getBlocksByRange #5996
  • fix: retry a failed log slice instead of fetching the whole range again #6049
  • fix: adapt state overrides and prestate to mirror node v0.167 numeric balance and nonce #6036
  • chore: rethrow request aborts instead of logging them in fallback catch blocks #5992

CI / Testing

  • ci: add a Block Node to the acceptance tests #6005
  • fix: use the renamed Solo npm package and bump Solo to 0.97.0 #6004

Dependency Upgrades

  • chore: bump runtime base image to node:24-alpine3.24 (Alpine 3.24.4) #6053
  • build(deps): bump the npm-weekly group across 2 directories with 19 updates #5990
  • build(deps-dev): bump the npm-weekly group across 1 directory with 9 updates #6012
  • build(deps): bump the actions-weekly group with 4 updates #5991
  • build(deps): bump the actions-weekly group with 3 updates #6013
  • build(deps): bump step-security/harden-runner from 2.22.4 to 2.23.0 #6039

#6014, #6027, #6032 and #6041 were already shipped to 0.82.x in v0.82.1–v0.82.4.

❤️ Contributors

Thank you to all the contributors who worked on this release:

@natanasow, @tgntr, @Ferparishuertas, @ValentinVPK

Don't miss a new hiero-json-rpc-relay release

NewReleases is sending notifications on new releases.