Skip to content

fix: resolve causality region conflict crashing indexer#161

Merged
hudsonhrh merged 1 commit intomainfrom
hudsonhrh/fix-indexing-crash
Apr 15, 2026
Merged

fix: resolve causality region conflict crashing indexer#161
hudsonhrh merged 1 commit intomainfrom
hudsonhrh/fix-indexing-crash

Conversation

@hudsonhrh
Copy link
Copy Markdown
Member

Summary

  • Root cause fix: Removed Hat entity mutation from the handleHatMetadata IPFS file data source handler. This was writing to an entity owned by the ethereum event causality region, causing a deterministic "Failed to transact block operations" / "WASM runtime thread terminated" abort during org deployment blocks (145+ triggers).
  • Added missing duplicate check (HatMetadata.load()) in createHatIpfsDataSource to follow the 3-check IPFS pattern and prevent redundant file data sources.
  • Fixed toBigInt() crash risk in proposal-metadata.ts and token-request-metadata.ts — JSON numbers with decimals (e.g. 1706812800.0) now safely truncate before BigInt parsing.

Test plan

  • npm run codegen passes
  • npm run build passes
  • All 241 tests pass
  • Redeploy subgraph and verify it indexes past the previously failing block

🤖 Generated with Claude Code

…ment

The IPFS file data source handler (handleHatMetadata) was writing to Hat
entities owned by the ethereum event causality region, causing a
deterministic "Failed to transact block operations" abort when IPFS
content arrived in the same block as hat creation (e.g. org deployments
with 145+ triggers).

- Remove Hat entity mutation from hat-metadata IPFS handler (root cause)
- Add missing duplicate check in createHatIpfsDataSource (3-check pattern)
- Fix toBigInt() crash on float JSON values in proposal/token-request metadata

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hudsonhrh hudsonhrh merged commit 4bedd4b into main Apr 15, 2026
4 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.

1 participant