This project use escript to run the erlang application with arguments directly in the terminal.
Make sure you have escript correcty installed in your computer (normally installed with erlang itself) before running the program.
To compile the project, use the command:
make build
To run the program (First Part), you can use the command:
make run1
To run the program (Second Part), you can use the command:
make run2
escript src/parts/2_byzantine_nodes_problem/runner.erl N_NODE BYZ_FRAC VIEW_FRAC SUBSET_FRAC LOG_FILE WAIT_TIME
WHERE
N_NODEis the total number of node in the network,BYZ_FRACis the percentage of byzantine nodes in the total number of node in the network [0;1],VIEW_FRACis the percentage of nodes present in the view of each node (allows to calculate the size of the view according toN_NODE) [0:1]SUBSET_FRACis the percentage of nodes in each view which will be shared at the neighboring nodes. [0:1]LOG_FILEis the name of the logging file.WAIT_TIMEis the time during which the program will run before closing.