Git Product home page Git Product logo

lamden's Introduction

Lamden Blockchain

Get a computer with Ubuntu 18.04.

  • DigitalOcean droplets are our favorites if you are new.

Install Pip3

sudo apt-get update
sudo apt-get install python3-pip -y

Install MongoDB

As copied from here: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt-get install -y mongodb-org
echo "mongodb-org hold" | sudo dpkg --set-selections
echo "mongodb-org-server hold" | sudo dpkg --set-selections
echo "mongodb-org-shell hold" | sudo dpkg --set-selections
echo "mongodb-org-mongos hold" | sudo dpkg --set-selections
echo "mongodb-org-tools hold" | sudo dpkg --set-selections
sudo systemctl start mongod

Install Haveged (Recommended)

For some reason, DigitalOcean droplets, and perhaps other cloud providers, have /dev/random blocking problems. This probably is because they are running many small computers on a single Linux instance and the entropy pool dries up pretty quickly. If this doesn't make sense, install Haveged and don't worry about it.

If it does, libsodium, which is the public-private key cryptography library we use, uses /dev/random with no option to use /dev/urandom. Haveged solves this problem.

sudo apt-get install haveged -y
systemctl start haveged
systemctl enable haveged

Install Lamden

pip3 install lamden

Make a Constitution

nano ~/constitution.json

{
  "masternodes": [<list of vks here>],
  "masternode_min_quorum": <int>,
  "delegates": [<list of vks here>],
  "delegate_min_quorum": <int>
}

Ctrl+X, save the file.

Start your node

lamden <masternode | delegate> -k <sk in hex format> -bn <list of ip addresses that are currently online>

Autoinstall

You can install a script to install the entire software.

wget https://raw.githubusercontent.com/Lamden/lamden/dev/INSTALL.sh

Always practice good saftey and examine the bash file before executing it.

lamden's People

Contributors

allen-munsch avatar aranchelk avatar cannula avatar cmcgrath13 avatar davetejas avatar dhaba avatar exdx avatar jeffwscott avatar kevkim11 avatar kyanha avatar nsmkhn avatar raghupc avatar sanko61 avatar stuartfarmer avatar wywfalcon 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.