Coder Social home page Coder Social logo

argochain's Introduction

argochain

Welcome to argochain, a PoS blockchain based on ethereum model with a VRF lottery validator mechanism.

How to run

RUNNING THE BLOCK EXPLORER

To run the block explorer navigate into ./block_exporer and run yarn install or npm install Then just run yarn start or npm run start

RUNNING THE NODES FOR THE BLOCKCHAIN

With docker

WARNING : DOCKER IS NOT STABLE ON THE LATEST VERSION

Make sure you have docker installed. Then while in the root directory of the project run the follwing to build the image.

docker build . -t <user>/node

Then run the image with:

docker run -p 5001:5001 -d <user>/node

Without docker

You can run the application without docker by just using npm.

Install the dependecies

npm i

Then run the porject locally with:

npm run production

For the production envirionment or

npm run dev

For the development environment

Multiple instances

For first node:

set P2P_PORT=5001 && set HTTP_PORT=3001 && npm run dev

For second node:

set P2P_PORT=5002 && set HTTP_PORT=3002 &&set PEERS=ws://localhost:5001 && npm run dev

Structure

...

Blockchain

...

P2P network layer

...

Transaction Layer and Validation

...

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.