fix: self-anchoring never stored inclusion proofs, causing concluder failures #757
+1,500
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
anchor-service/src/transaction_manager.rs: AddedChainInclusionDatastruct andchain_inclusionfield toRootTimeEventanchor-service/src/lib.rs: ExportedChainInclusionDataanchor-service/src/anchor.rs: Addedchain_inclusionfield toTimeEventBatchandTimeEventInsertable, updated conversion methodsanchor-service/src/anchor_batch.rs: Flowschain_inclusionfromRootTimeEventtoTimeEventBatchanchor-evm/src/evm_transaction_manager.rs:AnchorResultstruct (moved outside impl block)submit_and_waitto return blockhash,timestamp, andtx_inputChainInclusionDatainanchor_rootwith all needed fieldsanchor-service/src/cas_mock.rsandanchor-remote/src/cas_remote.rs: Addedchain_inclusion: NonetoRootTimeEventevent-svc/src/store/sql/entities/chain_proof.rs: AddedFrom<ChainInclusionData>impl forChainProofevent-svc/src/event/store.rs: Updatedceramic_anchor_service::Store::insert_manyto extract and persist chain inclusion proofschain_inclusion: None