Æternity p2p simulator
$ rebar3 escriptize
$ _build/default/bin/aesim
When running a scenario, all the possible options are printed before running the simulation. The options can be changed with:
$ _build/default/bin/aesim max_sim_time=5h max_nodes=200
Format: [DDd][HHh][MMm][SSs][XXXX]
e.g.
100: 100 milliseconds1h: 3600000 milliseconds2m10s42: 130042 milliseconds
To generate graphics for the simulation metrics you need rrdtool installed.
You can enable it by passing the option:
$ _build/default/bin/aesim rrd_enable=true
Simulation scenarios are callback modules implementing behaviour
aesim_scenario; A scenario different from the default one can be selected
by setting the scenario_mod option:
$ _build/default/bin/aesim scenario_mod=esim_scenario_myscenario