Skip to content

zatJUM/2019NNtestnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

* 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 77.0%
  • JavaScript 12.9%
  • C++ 4.6%
  • HTML 2.2%
  • Shell 1.4%
  • Makefile 0.7%
  • Other 1.2%