-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Milestone
Description
Handle the BackwardLET in the L2 bridge syncer.
Function signature
function backwardLET(
uint256 newDepositCount,
bytes32[_DEPOSIT_CONTRACT_TREE_DEPTH] calldata newFrontier,
bytes32 nextLeaf,
bytes32[_DEPOSIT_CONTRACT_TREE_DEPTH] calldata proof
) external virtual onlyGlobalExitRootRemover ifEmergencyStateEvent signature
event BackwardLET(
uint256 previousDepositCount,
bytes32 previousRoot,
uint256 newDepositCount,
bytes32 newRoot
);Behavior
Once we index the event:
- removing all the bridges that have the
depositCountfield greater thannewDepositCountfrom the event in thebridgetable, and moving them to a separate table.- TBD reorgs handling, in a way that if certain bridge that was affected by
BackwardLETlater on theBackwardLETgets reorged,
- TBD reorgs handling, in a way that if certain bridge that was affected by
- figure out how to update the
exitTree, which isAppendOnlyTree. Should it become theaggkit/bridgesync/processor.go
Line 569 in 9ba13e3
exitTree *tree.AppendOnlyTree UpdateableTree? 🤔
Open questions
- (L2) reorgs handling, because it seems that bridges should be removed from bridge table,
exitTreeshould beUpdatableTree, since now we should be able to update its content (namely remove leafs)?
Metadata
Metadata
Assignees
Labels
No labels