aboutsummaryrefslogtreecommitdiff
path: root/spec/guard-spec/algorithm.md
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2023-11-08 11:45:29 -0500
committerNick Mathewson <nickm@torproject.org>2023-11-09 16:42:47 -0500
commit243543a3e5f8569f4e8c6a07e0ef83b4bbedd2c6 (patch)
tree9b6328bb2fc895d5de4c4a63155af10b9b8f2078 /spec/guard-spec/algorithm.md
parent01d59d7c29ba27aaae1b635243853260581384a1 (diff)
downloadtorspec-243543a3e5f8569f4e8c6a07e0ef83b4bbedd2c6.tar.gz
torspec-243543a3e5f8569f4e8c6a07e0ef83b4bbedd2c6.zip
Fix state diagram in algorithm.md
Diffstat (limited to 'spec/guard-spec/algorithm.md')
-rw-r--r--spec/guard-spec/algorithm.md33
1 files changed, 15 insertions, 18 deletions
diff --git a/spec/guard-spec/algorithm.md b/spec/guard-spec/algorithm.md
index 0eaeb0e..1db72f5 100644
--- a/spec/guard-spec/algorithm.md
+++ b/spec/guard-spec/algorithm.md
@@ -350,24 +350,21 @@ The per-circuit state machine is:
closed.
```mermaid
----
-title: Circuit state transitions
----
-
-[*] -> usable_on_completion
-[*] -> usable_if_no_better_guard
-usable_on_completion -> complete
-usable_on_completion -> failed
-usable_if_no_better_guard -> usable_on_completion
-usable_if_no_better_guard -> waiting_for_better_guard
-usable_if_no_better_guard -> failed
-waiting_for_better_guard -> complete
-waiting_for_better_guard -> failed
-waiting_for_better_guard -> closed
-complete -> failed
-complete -> closed
-failed -> [*]
-closed -> [*]
+stateDiagram-v2
+ [*] --> usable_on_completion
+ [*] --> usable_if_no_better_guard
+ usable_on_completion --> complete
+ usable_on_completion --> failed
+ usable_if_no_better_guard --> usable_on_completion
+ usable_if_no_better_guard --> waiting_for_better_guard
+ usable_if_no_better_guard --> failed
+ waiting_for_better_guard --> complete
+ waiting_for_better_guard --> failed
+ waiting_for_better_guard --> closed
+ complete --> failed
+ complete --> closed
+ failed --> [*]
+ closed --> [*]
```
<!-- TODO: The above diagram does not yet render. Fix that. -->