diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-09-11 14:56:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 14:56:47 +0800 |
commit | 292ad73ec08621fa9beef5f028860131fcbf9bd9 (patch) | |
tree | 47644eaad7757cd2e8798ae7fe361fa5d6e99060 /simulation/config | |
parent | 582a491aa0bcb784ac7b65ebbfb42139945ea703 (diff) | |
download | dexon-consensus-292ad73ec08621fa9beef5f028860131fcbf9bd9.tar dexon-consensus-292ad73ec08621fa9beef5f028860131fcbf9bd9.tar.gz dexon-consensus-292ad73ec08621fa9beef5f028860131fcbf9bd9.tar.bz2 dexon-consensus-292ad73ec08621fa9beef5f028860131fcbf9bd9.tar.lz dexon-consensus-292ad73ec08621fa9beef5f028860131fcbf9bd9.tar.xz dexon-consensus-292ad73ec08621fa9beef5f028860131fcbf9bd9.tar.zst dexon-consensus-292ad73ec08621fa9beef5f028860131fcbf9bd9.zip |
simulation: integrate test.Transport (#99)
- Add marshaller for simulation by encoding/json
- Implement peer server based on test.TranportServer
- Remove network models, they are replaced with test.LatencyModel
Diffstat (limited to 'simulation/config')
-rw-r--r-- | simulation/config/config.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go index 2f03f85..f8f629b 100644 --- a/simulation/config/config.go +++ b/simulation/config/config.go @@ -31,6 +31,7 @@ type NetworkType string const ( NetworkTypeTCP NetworkType = "tcp" NetworkTypeTCPLocal NetworkType = "tcp-local" + NetworkTypeFake NetworkType = "fake" ) // Consensus settings. |