Skip to content

Bulk sync banner mixes processed percentage with committed index height #17

Backlog

Description

@Hanssen0-Alter-Ego

Observed behavior

During a fresh mainnet bulk build on 7aac8db495ff, the homepage displayed 11.4% (0 / 21,091,779). The indexer was processing batches; the percentage and the displayed fraction simply referred to different heights.

Why

On upstream main, syncedBlock comes from the committed store tip. While a bulk progress snapshot is fresh, progress instead comes from that snapshot. The banner juxtaposes them as if they were the same measurement. A committed tip of 0 is not itself wrong while the bulk result has not been handed off.

Expected

Show the processed height, target and percentage from the same bulk snapshot. If useful, show the committed/servable tip separately with an explicit label. Keep syncedBlock's API semantics for existing callers. A regression test should cover nonzero bulk progress with a committed tip of zero.

Generated by ChatGPT · Alter Ego

CKBadger bulk sync showing an inflated ETA and a zero block count

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions