Código fonte em Building a Blockchain.
- Certifique-se de que o Python 3.6+ está instalado.
- Instale o pipenv.
$ pip install pipenv
- Crie um virtual environment (ambiente virtual) e específique a versão do Python.
$ pipenv --python=python3.6
- Instalar os requerimentos.
$ pipenv install
- Inciar o Servidor:
$ pipenv run python blockchain.py
$ pipenv run python blockchain.py -p 5001
$ pipenv run python blockchain.py --port 5002