https://github.com/akashbhuiyan/block-chain-by-python
Simple blockchain for learning purpose (lockdown fun day)
https://github.com/akashbhuiyan/block-chain-by-python
blockchain blockchain-multi-node blockchain-node-sync blockchain-python blockchain-transactions
Last synced: about 1 month ago
JSON representation
Simple blockchain for learning purpose (lockdown fun day)
- Host: GitHub
- URL: https://github.com/akashbhuiyan/block-chain-by-python
- Owner: AkashBhuiyan
- License: mit
- Created: 2020-04-11T12:01:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-14T12:01:40.000Z (about 5 years ago)
- Last Synced: 2023-09-06T14:09:10.239Z (over 1 year ago)
- Topics: blockchain, blockchain-multi-node, blockchain-node-sync, blockchain-python, blockchain-transactions
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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