Sign inSign up

loopring/miner

By loopring

•Updated over 8 years ago

Official loopring/miner implementation of the match engine

Image
0

340

loopring/miner repository overview

⁠Miner

⁠Building the source

Building miner requires both a Go (version 1.9.0 or later) and a C compiler. You can install them using your favourite package manager. Once the dependencies are installed, clone code form git, and run

cd $GOPATH/src/github.com/Loopring/miner && go build -ldflags -s -v  -o build/bin/miner cmd/lrc/*

⁠Dependencies

  • mysql
  • redis
  • zookeeper
  • kafka
  • ethereum node
  • relay-cluster
  • extractor

⁠Configuration

As an alternative to passing the numerous flags to the relay binary, you can also pass a configuration file via: --config /YOUR_CONFIG_PATH/relay.toml quick start

miner --unlocks=YOUR_MINER_ACCOUNT  --passwords=YOUR_MIENR_PASSWORD --config=/opt/loopring/miner/config/miner.toml

⁠Creating docker image

Install docker and run

docker build -t IMAGE_NAME:TAG RELAY_SOURCE_DIR

⁠Docker quick start

docker run -d --name miner -v YOUR_KEYSTORE_DIR:/opt/loopring/miner/keystore -v YOUR_LOG_DIR:/opt/loopring/miner/logs -v YOUR_CONFIG_DIR:/opt/loopring/miner/config  loopring/miner:v1.5.0  --unlocks=YOUR_MINER_ACCOUNT  --passwords=YOUR_MIENR_PASSWORD --config=/opt/loopring/miner/config/miner.toml

⁠Attention

ethereum node We suggest user sync blocks from mainnet for relay ethereum client. While sync finished, before relay start, make sure default_block_number in relay.toml is bigger than 4717454.

tokens.json file tokens.json file listed tokens and markets those exchanges want to support. you can combine markets like WETH-LRC

Tag summary

Content type

Image

Digest

Size

152.2 MB

Last updated

over 8 years ago

docker pull loopring/miner