Render ASCII art

This commit is contained in:
Greg Fitzgerald 2019-02-07 08:41:12 -07:00
parent 87ba5b865d
commit e2eb7c1ba7
3 changed files with 18 additions and 40 deletions

View File

@ -0,0 +1,5 @@
2
/|
/ |
4 |
5

9
book/art/forks.bob Normal file
View File

@ -0,0 +1,9 @@
1
/ \
2 \
/| |
/ | |
4 | |
5 /\
6 \
7

View File

@ -17,17 +17,7 @@ An *active fork* is a direct list of connected forks that descend from the curre
For example:
```art
1
/ \
2 \
/| |
/ | |
4 | |
5 /\
6 \
7
```
<img alt="Forks" src="img/forks.svg" class="center"/>
The following *active forks* are in the deltas DAG
@ -42,42 +32,16 @@ A validator votes for a finalized fork. The *active fork* connecting the fork t
For example:
```art
1
/ \
2 \
/| |
/ | |
4 | |
5 /\
6 \
7
```
<img alt="Forks" src="img/forks.svg" class="center"/>
* ROLLBACK\_DEPTH=2, vote=5, *active fork*={5,2,1}
```art
2
/|
/ |
4 |
5
```
<img alt="Forks after pruning" src="img/forks-pruned.svg" class="center"/>
The new root is 2, and any active forks that are not descendants from 2 are pruned.
* ROLLBACK\_DEPTH=2, vote=6, *active fork*={6,1}
```art
1
/ \
2 \
/| |
/ | |
4 | |
5 /\
6 \
7
```
<img alt="Forks" src="img/forks.svg" class="center"/>
The tree remains with `root=1`, since the *active fork* starting at 6 is only 2 forks long.