Skip to content

Conversation

@m0ar
Copy link
Collaborator

@m0ar m0ar commented Jan 19, 2026

The self-anchoring process didn't store the inclusion proofs in the DB, causing pipeline errors for self-anchored events. This is now implemented so the node immediately can validate the events that it created and anchored.

Approach:

  1. anchor-service/src/transaction_manager.rs: Added ChainInclusionData struct and chain_inclusion field to RootTimeEvent
  2. anchor-service/src/lib.rs: Exported ChainInclusionData
  3. anchor-service/src/anchor.rs: Added chain_inclusion field to TimeEventBatch and TimeEventInsertable, updated conversion methods
  4. anchor-service/src/anchor_batch.rs: Flows chain_inclusion from RootTimeEvent to TimeEventBatch
  5. anchor-evm/src/evm_transaction_manager.rs:
    • Added AnchorResult struct (moved outside impl block)
    • Modified submit_and_wait to return block hash, timestamp, and tx_input
    • Creates ChainInclusionData in anchor_root with all needed fields
  6. anchor-service/src/cas_mock.rs and anchor-remote/src/cas_remote.rs: Added chain_inclusion: None to RootTimeEvent
  7. event-svc/src/store/sql/entities/chain_proof.rs: Added From<ChainInclusionData> impl for ChainProof
  8. event-svc/src/event/store.rs: Updated ceramic_anchor_service::Store::insert_many to extract and persist chain inclusion proofs
  9. Test files: Updated all expectation files to include chain_inclusion: None

@m0ar m0ar requested a review from stbrody January 19, 2026 17:04
@m0ar m0ar self-assigned this Jan 19, 2026
@m0ar m0ar requested a review from a team as a code owner January 19, 2026 17:04
@m0ar m0ar requested review from stephhuynh18 and removed request for a team January 19, 2026 17:04
@m0ar m0ar added the bug Something isn't working label Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants