From bd848896b32a496d0ff660d63b4b829d82d8edc7 Mon Sep 17 00:00:00 2001 From: Anatoly Yakovenko Date: Mon, 4 Feb 2019 10:00:42 -0800 Subject: [PATCH] better ascii --- book/src/fork-checkpoints.md | 52 +++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git a/book/src/fork-checkpoints.md b/book/src/fork-checkpoints.md index 061dd9ed45bb3c..9667d32221942b 100644 --- a/book/src/fork-checkpoints.md +++ b/book/src/fork-checkpoints.md @@ -17,11 +17,15 @@ An *active chain* is a direct list of connected forks that descend from the curr For example: ``` - 1 - / \ - 2 / \ - / \ 6 7 - 4 5 + 1 + / \ + 2 \ + /| | + / | | + 4 | | + 5 /\ + 6 \ + 7 ``` The following *acitve chains* are in the checkpoints DAG @@ -37,19 +41,26 @@ A validator votes for a finalized fork. The *active chain* connecting the fork For example: ``` - 1 - / \ - 2 / \ - / \ 6 7 - 4 5 + 1 + / \ + 2 \ + /| | + / | | + 4 | | + 5 /\ + 6 \ + 7 ``` * ROLLBACK\_DEPTH=2, vote=5, *active chain*={5,2,1} ``` - 2 - / \ - 4 5 + 2 + /| + / | + 4 | + 5 + ``` The new root is 2, and any active chains that are not descendants from 2 are pruned. @@ -57,12 +68,15 @@ The new root is 2, and any active chains that are not descendants from 2 are pru * ROLLBACK\_DEPTH=2, vote=6, *active chain*={6,1} ``` - 1 - / \ - 2 / \ - / \ 6 7 - 4 5 + 1 + / \ + 2 \ + /| | + / | | + 4 | | + 5 /\ + 6 \ + 7 ``` The tree remains with `root=1`, since the *active chain* starting at 6 is only 2 forks long. -