Skip to content

fix: fallback to client hash when BlockHash is missing - #215

Merged
JayWhite2357 merged 2 commits into
mainfrom
fix/hash-fallback
Aug 6, 2026
Merged

fix: fallback to client hash when BlockHash is missing#215
JayWhite2357 merged 2 commits into
mainfrom
fix/hash-fallback

Conversation

@JayWhite2357

@JayWhite2357 JayWhite2357 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

The runtime prunes the block number to block hash mappings. As a result, the prover_db_indexer can fail to get the events needed. See the block_hash_falls_back_to_client_once_frame_system_prunes_the_entry test in this PR for an example.

What changes are included in this PR?

  • client::hash is added to get the block hash from the client.
  • A block_hash helper method is added and used that falls back to getting the block hash from the client instead of the state.

Are these changes tested?

Yes

@JayWhite2357
JayWhite2357 requested review from a team as code owners August 5, 2026 14:39
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

1.70.0

Bug Fixes

  • fallback to client hash when is missing (95794da
  • make on chain indexer keys saturate rather than default to (5f794de
  • use finalized block in prover-db-indexer (50438ab

Features

  • add helper that queries the client for s. (4fc3952
  • add client native interface and extenality (d9c6c4d
  • add generic config key-value store for offchain workers (117b845
  • adds (a5b581d
  • Document Snapshot Download Process (4c2608b
  • drop from prover_db_indexer (b3381c5
  • register client externality to offchain worker (338c213
  • use client for (6679c06
  • use generic key value config for prover_db_indexing instead of storage/CLI based config (faff564

Comment thread pallets/prover_db_indexer/src/mock.rs
@JayWhite2357
JayWhite2357 merged commit 57ab735 into main Aug 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants