Skip to content

cryptobuks1/LyraNetwork-DAG-style-Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

Testnet Now!

Lyra Permissionless Node Setup

  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

About

DAG-style Blockchain (blocklist) for Loyalty, Store Credit, Gifts and a lot more

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •