YigitAras / PBFT_For_Blockchain

CS403 Distributed Systems final project at Sabanci University. Practical Byzantine Fault Tolerance Consensus protocol for blockchain applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call the proposer and the validator functions as follows;

python proposer.py PORT NUMBER_OF_PEERS NUMBER_OF_ROUNDS LINES_IN_BLOCK
python validator.py PORT NUMBER_OF_PEERS NUMBER_OF_ROUNDS LINES_IN_BLOCK

Please start proposer from port 5001, then open other validators by incrementing this by 1;
proposer -> 5001 , validator1 -> 5002 ... etc
This naming convention is for the TESTER.PY script which will read the files and check if the values are holding properly.

(Note that after starting proposer you have to wait 1 sec for API server to start then start other validators)

scripts will print as they recieve messages and send messages to make sure we know if something goes wrong

About

CS403 Distributed Systems final project at Sabanci University. Practical Byzantine Fault Tolerance Consensus protocol for blockchain applications.


Languages

Language:Python 100.0%