Skip to content

Commit

Permalink
contest subdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
spikeekips committed Oct 1, 2019
1 parent 566da7c commit 067ee95
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
2 changes: 2 additions & 0 deletions readthedocs/.dict.utf-8.add
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ zcash
YAML
config
json
VoteResult
VoteProof
23 changes: 5 additions & 18 deletions readthedocs/docs/contest/case-custom-policy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,11 @@
Case: Custom Policy
============================================================

.. code-block:: yaml
:linenos:
:emphasize-lines: 3,4,5
global:
policy:
threshold: 67
interval_broadcast_init_ballot_in_join: 5s
timeout_wait_vote_result_in_join: 6s
timeout_wait_ballot: 6s
condition:
all:
node_state:
- current_state="booting" and new_state="join"
new_block:
- m="new block created" and block.height>=12 and block.round=0
.. literalinclude:: config/custom-policy.yml
:caption: `custom-policy.yml <https://github.com/spikeekips/mitum-doc/raw/proto2/readthedocs/docs/contest/config/custom-policy.yml>`_
:language: yaml
:linenos:


In mitum, there are several factors for policy, these factors can control how mitum and consensus works.:

Expand Down
10 changes: 10 additions & 0 deletions readthedocs/docs/contest/cases.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
================================================================================
Cases
================================================================================

.. toctree::
:maxdepth: 1


/docs/contest/case-custom-policy

2 changes: 1 addition & 1 deletion readthedocs/docs/contest/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Contest provides these features:

/docs/contest/introduction
/docs/contest/condition
/docs/contest/case-custom-policy
/docs/contest/cases


.. note::
Expand Down

0 comments on commit 067ee95

Please sign in to comment.