This project is a dummy blockchain: instead of the real mining work, there's a server that solves the puzzle for each node. Each Node will collect the transactions it has received and hash them into a puzzle. The puzzle will be solved by service server and send back to it, if the service server solves. All the nodes will follow the longest chain principle to construct a tree-like blockchain where everyone has the same copy of work.
- pull the repo.
- install Golang and pyhton3.
- rm logs/*
- python3 mp2_service.py [tx_rate] [solve_rate]
- python aux.py <num_nodes> <vm_num> (if test locally, <vm_num> can be any int)
- ctrl-c to kill all nodes.
- python check_log [T/F] to get test result.