A testbed to implement and evaluate blockchain consensus mechanisms.
Dependencies:
- Python 2.7.x
- pyzmq
Process to run in each host participating in the network.
Arguments:
-i
IP address of the node in the network-p
port to listen to peers (defaults to 9000)--peers
list of peers IP addresses--miner
start node mining--log
console log level-c
configuration file
Simple single switch Mininet topology that runs node.py
in each host with private directories.
Arguments:
- number of hosts on switch
Localhost client to communicate with the node process and obtain blockchain info
Arguments:
getlastblock
last block on the chainaddpeer X
add X peer IP and connect to itremovepeer X
remove X peer and disconnectgetblock X
block X informationgetblocks X Y
blocks X and Y informationgetpeerinfo
IP of all connected peersstartmining
start mining on the nodestopmining
stop mining on the nodeexit
stop node process