core/filtermaps, eth: add debug_getFilterMapsProgress#34679
Draft
locoholy wants to merge 1 commit intoethereum:masterfrom
Draft
core/filtermaps, eth: add debug_getFilterMapsProgress#34679locoholy wants to merge 1 commit intoethereum:masterfrom
locoholy wants to merge 1 commit intoethereum:masterfrom
Conversation
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.
Problem
The filtermaps log indexer already tracks useful runtime progress internally,
but operators currently have to infer its status from logs or metrics.
This is inconvenient on large nodes where log indexing can take a long time
after startup or after history settings change. There is currently no RPC
method that reports which block range is already indexed.
Solution
Add
debug_getFilterMapsProgress, a small debug RPC method that exposes thecurrent filtermaps indexing status:
{ "disabled": false, "initialized": true, "headIndexed": true, "tailBlock": "0x...", "headBlock": "0x...", "mapsFirst": "0x...", "mapsAfterLast": "0x...", "tailPartialEpoch": "0x..." }The implementation is intentionally debug-only. It exposes the existing
runtime state of the log indexer without changing the semantics of
eth_syncing.Implementation
filtermaps.IndexProgressDTO and accessor.debug_getFilterMapsProgressineth/api_debug.go.debug.getFilterMapsProgress()to the JS console bindings.Test Plan