diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-09-20 14:05:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 14:05:39 +0800 |
commit | 682de6408544b8d4073333e6659340b304f4399e (patch) | |
tree | ff12fd4ffe5b68806daeda21f7724aa5f9012b69 | |
parent | 35f260f1fb55082abbfa0f8b241ae1a0218865e9 (diff) | |
download | dexon-consensus-682de6408544b8d4073333e6659340b304f4399e.tar dexon-consensus-682de6408544b8d4073333e6659340b304f4399e.tar.gz dexon-consensus-682de6408544b8d4073333e6659340b304f4399e.tar.bz2 dexon-consensus-682de6408544b8d4073333e6659340b304f4399e.tar.lz dexon-consensus-682de6408544b8d4073333e6659340b304f4399e.tar.xz dexon-consensus-682de6408544b8d4073333e6659340b304f4399e.tar.zst dexon-consensus-682de6408544b8d4073333e6659340b304f4399e.zip |
test_config: update config to latest runnable version (#122)
-rw-r--r-- | simulation/config/config.go | 2 | ||||
-rw-r--r-- | test_config/test.toml | 20 |
2 files changed, 15 insertions, 7 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go index bddb19d..6c7b584 100644 --- a/simulation/config/config.go +++ b/simulation/config/config.go @@ -107,7 +107,7 @@ func GenerateDefault(path string) error { }, Networking: Networking{ Type: NetworkTypeTCPLocal, - PeerServer: "peer.server", + PeerServer: "127.0.0.1", Mean: 100, Sigma: 10, LossRateValue: 0, diff --git a/test_config/test.toml b/test_config/test.toml index 48d31f6..d3d0d08 100644 --- a/test_config/test.toml +++ b/test_config/test.toml @@ -1,18 +1,26 @@ title = "DEXON Consensus Simulation Config" [node] -num = 21 -propose_interval_mean = 5e+02 -propose_interval_sigma = 5e+0 -max_block = 20 +num = 7 +max_block = 18446744073709551615 [node.consensus] -phi_ratio = 6.66670024394989e-01 +phi_ratio = 6.666666865348816e-01 k = 1 +chain_num = 7 +genesis_crs = "In DEXON we trust." +lambda = 250 + +[node.legacy] +propose_interval_mean = 5e+02 +propose_interval_sigma = 5e+01 [networking] type = "tcp-local" -peer_server = "peer.server" +peer_server = "127.0.0.1" mean = 1e+02 sigma = 1e+01 loss_rate_value = 0e+00 + +[scheduler] +worker_num = 2 |