Skip to content

fix(indexer): make the reindex correct against the live chain - #125

Merged
rvagg merged 1 commit into
masterfrom
rvagg/lotus-getlogs-range
Sep 10, 2026
Merged

rvagg merged 1 commit into
masterfrom
rvagg/lotus-getlogs-range

Conversation

@rvagg

@rvagg rvagg commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Fixing issues encountered while reindexing with PoRep market contracts:

  • eth_getLogs range limit hit but not detected
  • PoRepMarket ABI doesn't match commit, use verified deployed implementation
  • Drop PONDER_EXPERIMENTAL_DB=platform to reenable build-id check

Fixing issues encountered while reindexing with PoRep market contracts:
* eth_getLogs range limit hit but not detected
* PoRepMarket ABI doesn't match commit, use verified deployed implementation
* Drop PONDER_EXPERIMENTAL_DB=platform to reenable build-id check
@rvagg
rvagg requested a lite review from Copilot September 10, 2026 14:22
@FilOzzy FilOzzy added this to FOC Sep 10, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Sep 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The ABI, ingestion code, schema definitions, and tests are updated consistently to match deployed PoRepMarket event behavior and the Lotus log-range constraint.

Pull request overview

This PR updates the indexer to match live PoRepMarket mainnet behavior during reindexing, addressing log-range limits and correcting ABI/schema mismatches that caused decoding and persistence issues.

Changes:

  • Align PoRepMarket ABI + decoding test with the verified deployed implementation (not the repo ABI), removing the non-emitted manifestHash from DealProposalCreated.
  • Update PoRep deal ingestion + schema definitions to drop manifestHash persistence and keep the stored event fields consistent.
  • Configure Ponder to respect Lotus eth_getLogs block-range limits and remove the experimental DB setting from docker-compose to restore build-id checking.
File summaries
File Description
indexer/test/porep-events.test.ts Updates ABI decoding expectations for DealProposalCreated to match the deployed event layout.
indexer/src/schema-defs.ts Removes manifestHash from the PoRep deal proposal table definition and updates its description.
indexer/src/porep.ts Stops reading/inserting manifestHash for DealProposalCreated events.
indexer/ponder.config.ts Sets ethGetLogsBlockRange to accommodate Lotus eth_getLogs request limits.
indexer/package.json Bumps the custom Ponder fork version.
indexer/package-lock.json Locks the updated custom Ponder fork version and integrity metadata.
indexer/abis/PoRepMarket.ts Replaces ABI with the verified deployed implementation version (removing manifestHash from emitted event ABI).
docker-compose.yml Removes PONDER_EXPERIMENTAL_DB=platform to re-enable build-id checks.
Review details

Files not reviewed (1)

  • indexer/package-lock.json: Generated file
  • Files reviewed: 7/8 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@rvagg
rvagg merged commit 9b3d8bc into master Sep 10, 2026
6 checks passed
@rvagg
rvagg deleted the rvagg/lotus-getlogs-range branch September 10, 2026 15:01
@github-project-automation github-project-automation Bot moved this from 📌 Triage to 🎉 Done in FOC Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

3 participants