Giter Site home page Giter Site logo

hhghtest / loopchain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from icon-project/loopchain

0.0 1.0 0.0 1.08 MB

Blockchain engine for icon foundation.

Home Page: https://icon.foundation

License: Apache License 2.0

Makefile 0.31% Python 99.69%

loopchain's Introduction

Loopchain

Loopchain is a high-performance Blockchain Consensus & Network engine of ICON project.

In order to run a loopchain node, you need to install ICON Service that runs a smart contract and interacts with loopchain engine, and ICON RPC Server that processes HTTP requests from clients. For details, refer to the guide below.

Installation

Requirements

Loopchain development and execution requires following environments.

  • OS: MacOS, Linux

    • Windows are not supported yet.
  • Python

    • Python 3.6.5+ (recommended version, 3.7 is not supported)

      Optional) We recommend to create an isolated Python 3 virtual environment with virtualenv.

      $ virtualenv -p python3 venv
      $ source venv/bin/activate
  • Third party tools

    automake pkg-config libtool leveldb rabbitmq openssl
    

    If you're using package manager, you can install all of them through your package manager.

    MacOS, for example)

    $ brew install automake pkg-config libtool leveldb rabbitmq openssl
    $ brew services start rabbitmq
  • Check all requirements are installed and started properly

    $ make requirements

    If you don't see any error logs and you have started rabbitmq server, you may move on to next step.

Install necessary packages & Setup

This command is for setting up:

  • pip install all necessary packages.
  • generates python gRPC code from protocol buffer which is defined in loopchain.proto
  • generates a keystore file. Please be careful not to forget the password since you will need it to run Citizen Node later.
$ make all

...
Generating python grpc code from proto into >  /Users/jiyun/Desktop/happycoding/workspace/theloop/LoopChain
python3 -m grpc.tools.protoc -I'./loopchain/protos' --python_out='./loopchain/protos' --grpc_python_out='./loopchain/protos' './loopchain/protos/loopchain.proto'
Input your keystore password:  # Password must be at least 8 characters long including alphabet, number, and special character.

For more command options, you can check here:

$ make help

Run Citizen Node on ICON network

Clean Up

  • clear rabbitMQ processes & pycache & build
$ make clean
  • delete log / delete DB
$ make clean-db

License

This project follows the Apache 2.0 License. Please refer to LICENSE for details.

loopchain's People

Contributors

windies21 avatar laurenceyoon avatar zsaladin avatar hyerim-kim avatar hangaroy avatar yakkle avatar jckdotim avatar metalg0su avatar spl3en avatar bk-windy-theloop avatar

Watchers

James Cloos avatar

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.