This is the source code for Daniel van Flymen's post on Building a Blockchain.
The Blockchain Charlotte devs are planning on using this fork as a learning tool and extending the functionality to further match production worthy blockchains. Please open an issue with anything that you may want to implement or see implemented as part of the meetup group.
$ pip install -r requirements.txt
$ python blockchain.py
$ pip install pipenv
if you have Python version >3 then run below command to install pipenv
$ pip3 install pipenv
$ pipenv --python=python3.6
Note: if you get an error here, try replacing 'python3.6' with the full path to your python executable.
$ pipenv install
$ pipenv run python blockchain.py
$ pipenv run python blockchain.py -p 5001
$ pipenv run python blockchain.py --port 5002
Another option for running this blockchain program is to use Docker. Follow the instructions below to create a local Docker container:
$ docker build -t blockchain .
$ docker run --rm -p 80:5000 blockchain
$ docker run --rm -p 81:5000 blockchain
$ docker run --rm -p 82:5000 blockchain
$ docker run --rm -p 83:5000 blockchain
Contributions are welcome! Please feel free to submit a Pull Request.