From 54fe11608cd36f66260e525217ab32b07efaec62 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 8 Mar 2021 16:49:33 -0500 Subject: Add minimum activation height to BIP 8 --- bip-0008/states.dot | 3 +- bip-0008/states.png | Bin 46310 -> 60743 bytes bip-0008/states.svg | 82 ++++++++++++++++++++++++++++------------------------ 3 files changed, 46 insertions(+), 39 deletions(-) (limited to 'bip-0008') diff --git a/bip-0008/states.dot b/bip-0008/states.dot index aa919ff..8615978 100644 --- a/bip-0008/states.dot +++ b/bip-0008/states.dot @@ -7,7 +7,8 @@ digraph { "DEFINED" -> "STARTED" [label="height >= start_height"]; "STARTED" -> "MUST_SIGNAL" [label="height + 2016 >= timeoutheight AND lockinontimeout"]; "STARTED" -> "FAILED" [label="height >= timeoutheight\nAND\nNOT lockinontimeout"]; - "LOCKED_IN" -> "ACTIVE" [label="always"]; + "LOCKED_IN" -> "ACTIVE" [label="height >= minimum_activation_height"]; + "LOCKED_IN":se -> "LOCKED_IN":ne [label="height < minimum_activation_height"]; "MUST_SIGNAL" -> "LOCKED_IN" [label="always"]; edge [weight = 1]; diff --git a/bip-0008/states.png b/bip-0008/states.png index 6477ed3..f15efdb 100644 Binary files a/bip-0008/states.png and b/bip-0008/states.png differ diff --git a/bip-0008/states.svg b/bip-0008/states.svg index 3503c34..63fe634 100644 --- a/bip-0008/states.svg +++ b/bip-0008/states.svg @@ -1,14 +1,13 @@ - - - + + -%3 - + DEFINED @@ -16,7 +15,7 @@ DEFINED - + DEFINED:sw->DEFINED:nw @@ -32,10 +31,10 @@ DEFINED->STARTED -height >= start_height +height >= start_height - + STARTED:sw->STARTED:nw @@ -43,15 +42,15 @@ MUST_SIGNAL - -MUST_SIGNAL + +MUST_SIGNAL STARTED->MUST_SIGNAL - - -height + 2016 >= timeoutheight AND lockinontimeout + + +height + 2016 >= timeoutheight AND lockinontimeout @@ -64,57 +63,64 @@ STARTED->FAILED -height >= timeoutheight -AND -NOT lockinontimeout +height >= timeoutheight +AND +NOT lockinontimeout LOCKED_IN - -LOCKED_IN + +LOCKED_IN - + STARTED->LOCKED_IN - - -height < timeoutheight -AND -threshold reached + + +height < timeoutheight +AND +threshold reached - + MUST_SIGNAL->LOCKED_IN - - -always + + +always - + FAILED:sw->FAILED:nw + + +LOCKED_IN:se->LOCKED_IN:ne + + +height < minimum_activation_height + ACTIVE - -ACTIVE + +ACTIVE LOCKED_IN->ACTIVE - - -always + + +height >= minimum_activation_height - + ACTIVE:sw->ACTIVE:nw - - + + -- cgit v1.2.3