GithubHelp home page GithubHelp logo

akashbhuiyan / block-chain-by-python Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 19 KB

Simple blockchain for learning purpose (lockdown fun day)

License: MIT License

Python 97.25% Shell 2.75%
blockchain blockchain-python blockchain-transactions blockchain-node-sync blockchain-multi-node

block-chain-by-python's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.