summaryrefslogtreecommitdiff
path: root/bip-0008
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2017-06-24 18:35:25 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2017-06-25 06:32:06 +0000
commit750f5e59f6fe57f4b3c40c18df92d87aded4b9db (patch)
tree98d344e5621aa5b9d402f82627b0df8d762ae3fc /bip-0008
parent7abb1c17b549002f0787e05cc1314bc62698313c (diff)
downloadbips-750f5e59f6fe57f4b3c40c18df92d87aded4b9db.tar.xz
BIP 8: Refactor back to wholly-contained spec
This partially reverts 7f6a0f811cf27ab6d77e499afc81b97d6d11ced2
Diffstat (limited to 'bip-0008')
-rw-r--r--bip-0008/states.pngbin6684 -> 20891 bytes
-rw-r--r--bip-0008/states.svg51
2 files changed, 51 insertions, 0 deletions
diff --git a/bip-0008/states.png b/bip-0008/states.png
index 8d3ca71..8287573 100644
--- a/bip-0008/states.png
+++ b/bip-0008/states.png
Binary files differ
diff --git a/bip-0008/states.svg b/bip-0008/states.svg
new file mode 100644
index 0000000..56afd15
--- /dev/null
+++ b/bip-0008/states.svg
@@ -0,0 +1,51 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 608 464" width="608" height="464">
+ <defs>
+ <style type="text/css"><![CDATA[
+ rect {
+ fill: white;
+ stroke: black;
+ stroke-width: 1;
+ }
+ text {
+ fill: black;
+ }
+ svg>path {
+ stroke: black;
+ stroke-width: 2;
+ fill: none;
+ marker-end: url(#arrow);
+ }
+ ]]></style>
+ <marker id="arrow" markerWidth="13" markerHeight="13" refX="8" refY="6" orient="auto">
+ <path d="M0,2 L0,11 L8,6 L0,2" style="fill: black;" />
+ </marker>
+ </defs>
+
+ <rect x="112" y="48" width="128" height="32"/>
+ <text x="176" y="72" font-size="20" text-anchor="middle">DEFINED</text>
+ <path d="M 128 80 a 24 32 0 1 1 0 -32"/><!-- loop -->
+ <path d="M 176 80 l 0 96"/>
+ <text x="160" y="128" font-size="12" text-anchor="end">starttime &lt;= MTP &lt; timeout</text>
+ <rect x="112" y="176" width="128" height="32"/>
+ <text x="176" y="200" font-size="20" text-anchor="middle">STARTED</text>
+ <path d="M 128 208 a 24 32 0 1 1 0 -32"/><!-- loop -->
+ <path d="M 176 208 l 0 96"/>
+ <text x="192" y="232" font-size="12" text-anchor="start">(lockinontimeout == false) AND (MTP &lt; timeout) AND (threshold reached)</text>
+ <text x="304" y="256" font-size="12" text-anchor="start">OR</text>
+ <text x="192" y="280" font-size="12" text-anchor="start">(lockinontimeout == true) AND ((MTP &gt;= timeout) OR (threshold reached))</text>
+ <rect x="112" y="304" width="128" height="32"/>
+ <text x="176" y="328" font-size="20" text-anchor="middle">LOCKED_IN</text>
+ <path d="M 176 336 l 0 48"/>
+ <text x="192" y="360" font-size="12" text-anchor="start">Always</text>
+ <rect x="112" y="384" width="128" height="32"/>
+ <text x="176" y="408" font-size="20" text-anchor="middle">ACTIVE</text>
+ <path d="M 128 416 a 24 32 0 1 1 0 -32"/><!-- loop -->
+
+ <rect x="304" y="112" width="128" height="32"/>
+ <text x="368" y="136" font-size="20" text-anchor="middle">FAILED</text>
+ <path d="M 416 144 a 24 32 0 1 0 0 -32"/><!-- loop -->
+ <path d="M 240 64 l 64 48"/>
+ <text x="280" y="80" font-size="12" text-anchor="start">timeout &lt;= MTP</text>
+ <path d="M 240 192 l 64 -48"/>
+ <text x="280" y="180" font-size="12" text-anchor="start">(lockinontimeout == false) AND (timeout &lt;= MTP)</text>
+</svg>