A blockchain is a linked list of dictionaries.
Based on blockchain by dvf. Used under MIT license: https://github.com/dvf/blockchain
Installation
pipenv install # install dependencies
pipenv shell # activate virtual env
deactivate # deactivate virtual env
exit # exit project
Implementation
-
Remember to restart the server after making code changes!
-
To run
basic_block
,python3 blockchain.py
-
To run
client_mining
,python3 blockchain.py
in one terminal andpython3 miner.py
in another terminal.blockchain
is the backend andminer
is the client.