Giter Site home page Giter Site logo

relay's Introduction

Loopring Relay

The Loopring relay contains two parts: The Relay and Miner. The Relay is the service for wallet to broadcast orders to the ipfs network. The Miner found ring from the unmatched order. It can act as one or both of them:

This program is still under development and heavy refactoring. We DO NOT RECOMMEND starting your own relay as major upgrades are expected through the first half of 2018.

Set up

etherenum node

The relay needs a full ethereum node in order to run. See ethererum documentation for details:
https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum

mysql

Mysql is the backing datastore. It needs to be installed, and the database needs to be configured as in relay/config/relay.toml

ipfs

Orders are collected and broadcast through the ipfs network. See ipfs documentation for details:
https://ipfs.io/docs/install/

govendor

Install govendor to manage external golang packages

go get -u github.com/kardianos/govendor

install the relay

build from source: The environment variables: $GOROOT and $GOPATH must be set.

> go get -u github.com/Loopring/relay
> cd $GOPATH/src/github.com/Loopring/relay
> make relay

run as relay

> build/bin/relay --mode=relay

##run as miner

  • step 1: You must have an eth account to sign and submit ring. Run account to create or import it.
> build/bin/relay account --help
  • step 2: You must modify the config file. Set miner.miner to the eth account which can be found in keystore-dir. Then, you can run as follow.
> build/bin/relay  --mode=miner --unlocks $mineraddress --passwords $passwords

docker

reference
https://hub.docker.com/r/loopring/relay

relay's People

Contributors

mmmmmagina avatar dylenfu avatar lydy avatar yun163 avatar dong77 avatar sbrown-ai avatar tianheng2017 avatar xiaowheat avatar

Watchers

James Cloos avatar  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.