simulation/cmd/propagation_simulator
Ivan Danyliuk 7d4ace2b59
Add ability to choose propagation algorithm
2018-11-01 15:55:28 +01:00
..
.gitignore Renamed folders 2018-04-30 20:55:37 +02:00
README.md Rename naive to gossip 2018-11-01 15:32:10 +01:00
data_test.go Add server 2018-09-19 19:55:58 +03:00
main.go Add ability to choose propagation algorithm 2018-11-01 15:55:28 +01:00
simulation.go Add ability to choose propagation algorithm 2018-11-01 15:55:28 +01:00

README.md

Propagation simulator


This simulator implements command for running different simulation implementations. Currently supported:

  • whisperv6
  • naive gossip propagation

Installation

go get github.com/status-im/simulation/cmd/propagation_simulator

Usage

Just run:

propagation_simulator

This tool is looking for the network.json file as an input. You may override this name with -i filename.json command line flag. This should be valid JSON file with graph structure described here (link TBD). See examples/ directory.

propagation_simulator -i graph.json

Output statistics will be printed to the stdout, and final propagation data will be writtein into propagation.json file. (TODO: describe file format and further steps)

See propagation_simulator --help for more options.