aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/latency.go
Commit message (Collapse)AuthorAgeFilesLines
* Rename repo to dexon-consensusWei-Ning Huang2018-11-021-5/+5
|
* test: add transport layer (#97)Mission Liao2018-09-101-0/+54
The purpose of transport layer is to abstract the way to send messages and setup connections between peers in a p2p network. The peer discovery is simulated by a hosted server: every peer sends its address to a known server. Once collecting enough peers, respond the whole peers lists to all peers. Changes: - Add test.Trasnport interface - Add test.Transport implementation by golang channel. - Add test.transport implementation by TCP connection. - Move LatencyModel to core/test package - Add Marshaller interface