diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-12-26 10:15:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-26 10:15:51 +0800 |
commit | d333dc1a24df26ae8e8e3ffa2d700c1116a93ba2 (patch) | |
tree | f615cfa34cca680dd3e4a5930e06a6ff03ac1664 /test_config | |
parent | dce509a13ef5873b9cae3c1cabdb97e219b6fb7d (diff) | |
download | dexon-consensus-d333dc1a24df26ae8e8e3ffa2d700c1116a93ba2.tar dexon-consensus-d333dc1a24df26ae8e8e3ffa2d700c1116a93ba2.tar.gz dexon-consensus-d333dc1a24df26ae8e8e3ffa2d700c1116a93ba2.tar.bz2 dexon-consensus-d333dc1a24df26ae8e8e3ffa2d700c1116a93ba2.tar.lz dexon-consensus-d333dc1a24df26ae8e8e3ffa2d700c1116a93ba2.tar.xz dexon-consensus-d333dc1a24df26ae8e8e3ffa2d700c1116a93ba2.tar.zst dexon-consensus-d333dc1a24df26ae8e8e3ffa2d700c1116a93ba2.zip |
simulation: support config change (#381)
Diffstat (limited to 'test_config')
-rw-r--r-- | test_config/test-config-change.toml | 46 | ||||
-rw-r--r-- | test_config/test.toml | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/test_config/test-config-change.toml b/test_config/test-config-change.toml new file mode 100644 index 0000000..5950b30 --- /dev/null +++ b/test_config/test-config-change.toml @@ -0,0 +1,46 @@ +title = "DEXON Consensus Simulation Config" + +[node] +num = 7 +max_block = 18446744073709551615 + +# node.consensus is the genesis configuration. +[node.consensus] +phi_ratio = 6.666666865348816e-01 +k = 1 +num_chains = 4 +genesis_crs = "In DEXON we trust." +lambda_ba = 250 +lambda_dkg = 4000 +round_interval = 100000 +notary_set_size = 7 +dkg_set_size = 7 +min_block_interval = 750 + +# node.config_changes describe the changes of configuration for each round. +[[node.changes]] +round = 1 +type = "num_chains" +value = "5" +[[node.changes]] +round = 2 +type = "num_chains" +value = "6" +[[node.changes]] +round = 3 +type = "num_chains" +value = "4" + +[node.legacy] +propose_interval_mean = 5e+02 +propose_interval_sigma = 5e+01 + +[networking] +type = "fake" +peer_server = "127.0.0.1" +mean = 1e+01 +sigma = 1e+01 +loss_rate_value = 0e+00 + +[scheduler] +worker_num = 2 diff --git a/test_config/test.toml b/test_config/test.toml index 4c4d979..0261d8d 100644 --- a/test_config/test.toml +++ b/test_config/test.toml @@ -14,6 +14,7 @@ lambda_dkg = 4000 round_interval = 200000 notary_set_size = 7 dkg_set_size = 7 +min_block_interval = 750 [node.legacy] propose_interval_mean = 5e+02 |