From 084255465da0c96e7cb94e3c2d1ac3a4a9d02652 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 14 Dec 2021 16:42:35 +1100 Subject: [PATCH] Add section about re-orgs --- sync/optimistic.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sync/optimistic.md b/sync/optimistic.md index 37e7d4447..49a5b3c88 100644 --- a/sync/optimistic.md +++ b/sync/optimistic.md @@ -57,6 +57,16 @@ unknown). Specifically, `SYNCING` responses should be fork-specific; the search for a block on one chain MUST NOT trigger a `SYNCING` response for another chain. +### Re-Orgs + +The consensus engine MUST support any chain reorganisation which does *not* +affect the justified checkpoint. The consensus engine MAY support re-orgs +beyond the justified checkpoint. + +If the justified checkpoint transitions from `SYNCING` -> `INVALID`, a +consensus engine MAY choose to alert the user and force the application to +exit. + ## Merge Transition To protect against attacks during the transition from empty `ExecutionPayload`