Skip to content

feat: use client for prover-db-indexing - #212

Merged
JayWhite2357 merged 1 commit into
mainfrom
feat/use-client-for-prover-db-indexing
Aug 3, 2026
Merged

feat: use client for prover-db-indexing#212
JayWhite2357 merged 1 commit into
mainfrom
feat/use-client-for-prover-db-indexing

Conversation

@JayWhite2357

@JayWhite2357 JayWhite2357 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

This completes the code that switches the prover_db_indexer offchain worker to use the node's client rather than offchain indexing.

What changes are included in this PR?

  • db_events_at is used instead of offchain_consumer::read_events
  • forward_events is inlined since it is not tested individually, and does not substantially simplify the readability of the code.

Are these changes tested?

Yes

@JayWhite2357
JayWhite2357 requested review from a team as code owners July 30, 2026 23:38
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown

1.70.0

Bug Fixes

  • 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
  • Document Snapshot Download Process (4c2608b
  • 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

@JayWhite2357
JayWhite2357 marked this pull request as draft July 30, 2026 23:45
@JayWhite2357

JayWhite2357 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

NOTE: These depend on #211 and #213. Once those merge, this will be rebased.

@JayWhite2357
JayWhite2357 force-pushed the feat/use-client-for-prover-db-indexing branch 4 times, most recently from 29e6126 to 7003bfe Compare August 3, 2026 07:16
Comment thread pallets/prover_db_indexer/src/db_events.rs
Comment thread pallets/prover_db_indexer/src/lib.rs Outdated
Comment thread pallets/prover_db_indexer/src/lib.rs Outdated
@JayWhite2357
JayWhite2357 force-pushed the feat/use-client-for-prover-db-indexing branch from 7003bfe to 6679c06 Compare August 3, 2026 19:46
@JayWhite2357
JayWhite2357 marked this pull request as ready for review August 3, 2026 20:10
@JayWhite2357
JayWhite2357 merged commit 70bc510 into main Aug 3, 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