Files for performing the setup using docker are placed into the /SimulationTest
folder.
- Docker
- Python 2.7
- pip install lockfile
sudo python main.py [OPTION] [arg]
Where [OPTION] can be:
-s : Creates a bitcoin blockchain of [arg] nodes, placed into different docker containers. The nodes are connected randomly between them, whereas there is a non-connected node called nodeMonitor. Other nodes are called nodeX where X is an incremental number. Moreover, every node randomly mines blocks and sends fundings to other nodes randomly selected.
-d : Deletes the bitcoin blockchain and all the containers.
-t : Perform tests.
-r : Randomize.
Binaries of Bitcon Core implementing the POC protocol are in the 'btcbin' folder
Source code can be found here.
Usage:
./poc-test.sh NUMNODES NUMCONNECTIONS
The script creates NUMNODES
nodes and NUMCONNECTIONS
random connections between nodes.
Data is stored in a folder named poctest
.
WARNING: If the folder exists, it will be DELETED.