Git Product home page Git Product logo

lyranetwork's Introduction

Note

Testnet Live Now! (From 10 Jan 2020)

Stable Release: https://github.com/graft-project/LyraNetwork/releases

Nightly/Testing Releases: https://github.com/wizd/LyraNetwork/releases

Lyra Permissionless Node Setup

Note:

  1. Install Linux (Ubuntu 18.04), or Windows, macOS

https://github.com/dotnet/core/blob/master/release-notes/3.1/3.1-supported-os.md

  1. Install Mongodb 4.2 Community Edition

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

โ€‹ 2.1 Enable mongodb security by this guide: https://medium.com/mongoaudit/how-to-enable-authentication-on-mongodb-b9e8a924efac

  1. Install dotnet core 3.1 LTS

https://dotnet.microsoft.com/download/dotnet-core/3.1

Install the ASP.NET Core runtime

  1. download Lyra releases from https://github.com/graft-project/LyraNetwork/releases to a folder, e.g. ~/lyra.permissionless-1.0.6.tar.gz

tar -xjvf lyra.permissionless-1.0.6.tar.gz

  1. create mongodb user

mongo
use lyra
db.createUser({user:'lexuser',pwd:'alongpassword',roles:[{role:'readWrite',db:'lyra'}]})
use dex
db.createUser({user:'lexuser',pwd:'alongpassword',roles:[{role:'readWrite',db:'dex'}]})

  1. generate staking wallet by, give the wallet a name, e.g. "poswallet"

dotnet ~/lyra/cli/lyracli.dll --networkid testnet -p webapi -g poswallet

  1. modify ~/lyra/node/config.testnet.json, change monodb account/password, change the wallet/name (was poswallet) to the name you created previous step.

  2. run. (remember to set environment variable LYRA_NETWORK to testnet/mainnet etc.)

dotnet dev-certs https --clean

dotnet dev-certs https

cd ~/lyra/node

export LYRA_NETWORK=testnet

dotnet Lyra.Node2.dll

  1. verify

https://localhost:4505/api/LyraNode/GetSyncState should return like: {"mode":0,"newestBlockUIndex":8,"resultCode":0,"resultMessage":null} mode 0 is normal, mode 1 is syncing blocks.

https://localhost:4505/api/LyraNode/GetBillboard display all connected nodes.

  1. refresh POS wallet balance (when node not running)

dotnet ~/lyra/cli/lyracli.dll --networkid testnet -p webapi

poswallet

sync

balance

stop

lyranetwork's People

Contributors

dinpd avatar wizd avatar

Stargazers

 avatar

Watchers

 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.