GithubHelp home page GithubHelp logo

milaas / 2019nntestnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jl777/supernet

0.0 1.0 0.0 193.23 MB

Testnet for 2019 NN candidates. Stats can be found at https://notarystats.info/testnet.php

CMake 0.22% Dockerfile 0.01% Makefile 0.70% C 76.91% C++ 4.58% Shell 1.40% HTML 2.24% Batchfile 0.08% Python 0.33% JavaScript 12.90% CSS 0.64% Java 0.01%

2019nntestnet's Introduction

How to partcipate

Make a Pull Request with your IP Address added to iguana/m_notary_testnet and your public key and name added to iguana/testnet.json.

Install and start the notary

* Clone this repo

* Install dependencies

sudo apt install build-essential pkg-config libc6-dev m4 \
        g++-multilib autoconf libtool ncurses-dev unzip git python \
        zlib1g-dev wget bsdmainutils automake libboost-all-dev \
        libssl-dev libprotobuf-dev protobuf-compiler \
        libqrencode-dev libdb++-dev ntp ntpdate vim software-properties-common \
        curl libevent-dev libcurl4-gnutls-dev libsodium-dev cmake clang

* Install nanomsg from https://github.com/nanomsg/nanomsg

* Clone and build Komodo from https://github.com/jl777/komodo --branch dev

* Create ~/.komodo.conf

rpcuser=<secure username>
rpcpassword=<secure password>
txindex=1
server=1
daemon=1
rpcworkqueue=256

* Start KMD daemon

komodod

* Export keys

# Get your address (to backup)
komodo-cli getaccountaddress ""
<your address>
# Retrieve your public key (to backup)
komodo-cli validateaddress <your address>
{
  "isvalid": true,
  "address": "<your address>",
  "scriptPubKey": "<you don't need to use your scriptPubKey, do not use>",
  "segid": 63,
  "ismine": true,
  "iswatchonly": false,
  "isscript": false,
  "pubkey": "<your public key>",
  "iscompressed": true,
  "account": ""
}
# Get private key (to backup and keep secret)
komodo-cli dumpprivkey <your address>
<your private key>

Please do not share your private key, keep it secret.

* Edit files and make the PR

Edit iguana/m_notary_testnet and iguana/testnet.json to add an entry for you using and your public IP address. Edit files into your fork of this github repository then make a Pull Request to this repository.

What is my public IP ?

curl https://ipinfo.io/ip

or

dig +short myip.opendns.com @resolver1.opendns.com

* Stop KMD daemon

komodo-cli stop

* Start KMD daemon with -pubkey=<your public key>

* Start BEER, PIZZA and TXSCLCC with -pubkey=<your public key>

komodod -ac_name=BEER -ac_supply=100000000 -addnode=78.47.196.146 -pubkey=<your public key>
komodod -ac_name=PIZZA -ac_supply=100000000 -addnode=78.47.196.146 -pubkey=<your public key>
komodod -ac_name=TXSCLCC -ac_supply=0 -ac_reward=2500000000 -ac_halving=210000 -ac_cc=2 -addressindex=1 -spentindex=1 -pubkey=<your public key> -addnode=54.36.126.42 -addnode=94.130.224.11

* Open ports required for p2p.

Coin Port
KMD 7770
BEER 8922
PIZZA 11607
TXSCLCC 51797
Iguana 17711

* Fund public key address on komodo and each asset chain.

If you need PIZZA or BEER, use the faucets at https://www.atomicexplorer.com/#/faucet/ or ask in #notarynode channel.

For TXSCLCC chain, mine 1 block using 1 CPU thread.

komodo-cli -ac_name=TXSCLCC setgenerate true 1 #start mining
komodo-cli -ac_name=TXSCLCC setgenerate false #stop mining

* Import your private key to all 3 nodes.

komodo-cli -ac_name=<coin name> importprivkey <your private key>

* Create ~/2019NNtestnet/iguana/pubkey.txt

pubkey=<your public key>

* Create ~/2019NNtestnet/iguana/passphrase.txt

passphrase=<your private key>

* Wait until the PR is merged.

Please feel free to join the Komodo discord where you can ask some help into the #notarynode channel https://discord.gg/UdwpxrG

* Start/restart notorization with Iguana

This script must be run from within the 2019NNtestnet/iguana directory.

cd ~/2019NNtestnet/iguana
./m_notary_testnet

* Ressources

This repository contains many useful scripts but you should read and understand before executing blindly. You'll find useful scripts at the following repositories but you should read the readme, adapt the config and read the code of the scripts you want to execute. https://github.com/KMDLabs/StakedNotary/ https://github.com/KomodoPlatform/komodotools http://www.notarynodewiki.info https://github.com/MrMLynch/nnutils

https://blog.komodoplatform.com/delayed-proof-of-work-explained-9a74250dbb86

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.