diff options
author | Jon Atack <jon@atack.com> | 2024-04-30 14:14:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 14:14:58 -0700 |
commit | 51b2d131bea737bcc692ae6176c805abdcb54d68 (patch) | |
tree | ced8480db7bfbd5289043ea51a2a9675d79b9db4 | |
parent | f61885edcf5e63ac205b1ca5f08173f1336bff74 (diff) | |
parent | 497ad1c81a8d7e882c86ffe780db5b01db66d686 (diff) | |
download | bips-51b2d131bea737bcc692ae6176c805abdcb54d68.tar.xz |
Merge pull request #1184 from katesalazar/20210917
BIP 0009: Remove transparent background from figure.
-rw-r--r-- | bip-0009/states.gv | 22 | ||||
-rw-r--r-- | bip-0009/states.png | bin | 30632 -> 50153 bytes |
2 files changed, 22 insertions, 0 deletions
diff --git a/bip-0009/states.gv b/bip-0009/states.gv new file mode 100644 index 0000000..9dc95c5 --- /dev/null +++ b/bip-0009/states.gv @@ -0,0 +1,22 @@ +/* There are many ways to compile this, but one of them is: + * + * $ dot -Tpng states.gv -o states.png + */ +digraph { + /* States. */ + DEFINED; FAILED; STARTED; LOCKED_IN; ACTIVE; + + /* Relationships between states, labeled where applicable. */ + DEFINED -> DEFINED; + DEFINED -> FAILED [label = "timeout ≤ MTP"]; + DEFINED -> STARTED [label = "starttime ≤ MTP < timeout"]; + FAILED -> FAILED; + STARTED -> STARTED; + STARTED -> FAILED [label = "timeout ≤ MTP"]; + STARTED -> LOCKED_IN [label = "(MTP < timeout) AND (threshold reached)"]; + LOCKED_IN -> ACTIVE [label = "Always"]; + ACTIVE -> ACTIVE; + + /* Visualization hack to unclutter output. */ + nodesep = 1.2; +} diff --git a/bip-0009/states.png b/bip-0009/states.png Binary files differindex 09312a1..2048ed8 100644 --- a/bip-0009/states.png +++ b/bip-0009/states.png |