Skip to content

dash-spv: public header queries on DashSpvClient #1173

Closed

Description

@ZocoLini

Platform reads headers through the storage internals (storage() → block_headers()) for the tip's time and to check an asset lock's block is still on our chain (dashpay/platform#5307).

Add to DashSpvClient:

  • tip_header() -> Option<HashedBlockHeader>
  • header_at(height) -> Result<Option<HashedBlockHeader>>
  • header_height(&BlockHash) -> Result<Option<u32>>

Ok(None) (no header) stays distinct from a read error, as BlockHeaderStorage does.

Activity

  1. self-assigned this
    on Oct 14, 2026
  2. added 2 commits that reference this issue on Oct 14, 2026
    15bdb45
    8965f47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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