项目作者: AkashBhuiyan

项目描述 :
Simple blockchain for learning purpose (lockdown fun day)
高级语言: Python
项目地址: git://github.com/AkashBhuiyan/block-chain-by-python.git
创建时间: 2020-04-11T12:01:05Z
项目社区:https://github.com/AkashBhuiyan/block-chain-by-python

开源协议:MIT License

下载


Block-Chain

Install The Environment:

conda env create -f environment.yml

Create Node:

To create node you must see the constant.py file to make sure about the port. After that run ./sync_node.sh 8001 bash file and then a folder will create called block-chain8001

If you want to define a new port and address, then declare it in constant.py

Syncing up the nodes :
  1. Run node.py file form block-chain8001 folder and view the http://localhost:8001/blockchain endpoint to see that It doesn’t have any blocks for now.
  2. Run the node.py from Parent node’s (block-chain) folder
  3. Stop the block-chain8001’s node.py file an run it again
  4. hit this url http://localhost:8001/blockchain and see the result