Git Product home page Git Product logo

chain's Introduction

UnUniFi

The Docker image will be automatically built by GitHub Container Registry when releases are created.

Install

Environment setup

This is an example for Ubuntu.

sudo apt install docker.io -y
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.6/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

sudo gpasswd -a $(whoami) docker
sudo chgrp docker /var/run/docker.sock
sudo systemctl enable docker
sudo systemctl restart docker

Join network

Get resources.

docker run -v ~/.ununifi:/root/.ununifi ghcr.io/ununifi/ununifid ununifid init [moniker] --chain-id [chain-id]
sudo chown -c -R $USER:docker ~/.ununifi
mkdir ~/ununifi
cd ~/ununifi
curl -L https://raw.githubusercontent.com/UnUniFi/chain/main/launch/[chain-id]/genesis.json -o ~/.ununifi/config/genesis.json
curl -O https://raw.githubusercontent.com/UnUniFi/chain/main/docker-compose.yml

Note

  • moniker is like a nickname of the node.
  • chain-id is the id of the blockchain network. (ex. In the current public testnet, the chain-id is ununifi-6-test.)

Edit config files.

  • ~/.ununifi/config/app.toml
  • .ununifi/config/config.toml ex. in the case of chain-id="ununifi-6-test", the possible settings are as follows.
    • persistent-peers = "f0e7dc092e1565ec5aa60d1341c5b6820e5a6c14@a.test.ununifi.cauchye.net:26656,411160f7963c316a83da803daa09914986618531@b.test.ununifi.cauchye.net:26656,1357ac5cd92b215b05253b25d78cf485dd899d55@ununifi.testnet.validator.tokyo-0.neukind.network:26656,25006d6b85daeac2234bcb94dafaa73861b43ee3@ununifi.testnet.validator.tokyo-1.neukind.network:26656"

Start node.

docker-compose up -d

Deprecated way of Installation

Environment setup

This is an example for Ubuntu.

sudo apt update
sudo apt install build-essential
cd ~
wget https://dl.google.com/go/go1.16.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz
echo export PATH=\$PATH:/usr/local/go/bin:\$HOME/go/bin >> ~/.bashrc
source ~/.bashrc

Clone

git clone https://github.com/UnUniFi/chain.git
cd UnUniFi
make install

Config daemon

ununifid init [moniker] --chain-id [chain-id]
cp launch/[chain-id]/genesis.json ~/.ununifi/config/genesis.json

Register daemon service

vi /etc/systemd/system/ununifid.service
[Unit]
Description=UnUniFi Node
After=network-online.target

[Service]
User=root
ExecStart=/root/go/bin/ununifid start
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
systemctl enable ununifid

License

Forked from Kava. Thanks Kava Team.

Copyright © UnUniFi development team. All rights reserved.

Licensed under the Apache v2 License.

chain's People

Contributors

rhuairahrighairidh avatar karzak avatar kimurayu45z avatar yasunorimatsuoka avatar senna46 avatar fedekunze avatar denalimarsh avatar nddeluca avatar tomosuke0930 avatar kourin1996 avatar jmahess avatar olwee avatar alexanderbez avatar kincaidoneil avatar gr8scott06 avatar jmaheswaran avatar lovincyrus avatar fadeev avatar jackzampolin avatar dependabot[bot] 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.