Browse Source

I think this is it!

web
blackjok3r 6 years ago
parent
commit
5c69ebf36e
  1. 4
      README.md
  2. 20
      assetchains.json
  3. 28
      m_notary_blank
  4. 1
      staked.json
  5. 15
      start.sh
  6. 3
      wp_7776

4
README.md

@ -22,12 +22,12 @@ cp config_example.ini config.ini
nano config.ini
```
After this we are ready to launch KMD and any chains that happen to be in `assetchains.json`. If KMD is not already synced this will take many hours, I would advise syncing KMD first to make the process a bit faster.
After this we are ready to launch KMD and any chains that happen to be in `assetchains.json`. If KMD is not already synced this will take many hours, I wold advise syncing KMD first to make the process a bit faster.
```shell
./start.sh
```
Once this is done, you have all the required things to launch iguana, there are some coins files in `iguana/coins` and iguana binary has been built from the SuperNET repo in your home folder and copied to `iguana` folder. Also the 'staked.json' file containing all the info for the Notary Network has been fetched from github.
Once this is done, you have all the required things to launch iguana, there are some coins files in `iguana/coins` and iguana binary has been built from the SuperNET repo in your home folder and copied to `iguana` folder. Also the staked.json file containing all the info for the Notary Network has been fetched from github.
To start your notary node and connect to the network simply run:
```shell

20
assetchains.json

@ -1,18 +1,22 @@
[
{
"ac_name": "TXSCLSTAKED001",
"ac_supply": "5000",
"ac_reward": "10000000000",
"ac_name": "TXSCLSTAKED1",
"ac_supply": "200000000",
"ac_end": "1",
"ac_cc": "777",
"addnode": "195.201.167.37",
"addressindex": "1",
"spentindex": "1",
"addnode": "172.6.6.105",
"freq": 10
},
{
"ac_name": "TXSCLSTAKED002",
"ac_supply": "5000",
"ac_reward": "10000000000",
"ac_name": "TXSCLSTAKED2",
"ac_supply": "200000000",
"ac_end": "1",
"ac_cc": "777",
"addnode": "195.201.167.37",
"addressindex": "1",
"spentindex": "1",
"addnode": "172.6.6.105",
"freq": 10
}
]

28
m_notary_blank

@ -1,28 +0,0 @@
#!/bin/bash
cd secp256k1; ./m_unix; cd ..
cd ../crypto777; ./m_LP; cd ../iguana
#gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -O2 -DISNOTARYNODE=1 -DLIQUIDITY_PROVIDER=1 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c
clang -g -Wno-deprecated -c -O2 -DISNOTARYNODE=1 -DLIQUIDITY_PROVIDER=1 *.c ../basilisk/basilisk.c ../gecko/gecko.c ../datachain/datachain.c
#gcc -g -fno-aggressive-loop-optimizations -Wno-deprecated -c -DISNOTARYNODE=1 -DLIQUIDITY_PROVIDER=1 main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c
clang -g -Wno-deprecated -c -DISNOTARYNODE=1 -DLIQUIDITY_PROVIDER=1 main.c iguana777.c iguana_bundles.c ../basilisk/basilisk.c
clang -g -o ../agents/iguana *.o ../agents/libcrypto777.a -lnanomsg -lcurl -lssl -lcrypto -lpthread -lz -lm
wget -qO staked https://raw.githubusercontent.com/StakedChain/StakedNotary/master/staked.json
../agents/iguana staked & #> iguana.log 2> error.log &
myip=`curl -s4 checkip.amazonaws.com`
sleep 4
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"SuperNET\",\"method\":\"myipaddr\",\"ipaddr\":\"$myip\"}"
sleep 3
#
#ADD NOTARY AREA
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"195.201.167.37\"}"
curl --url "http://127.0.0.1:7776" --data "{\"agent\":\"iguana\",\"method\":\"addnotary\",\"ipaddr\":\"195.201.167.38\"}"
#ADD NOTARY AREA
#
# external coins.
coins/btc_7776
coins/kmd_7776
# Unlock wallet.
./wp_7776

1
staked.json

@ -1 +0,0 @@
{"port":7007,"BTCminsigs":13,"minsigs":2,"seeds":["52.76.55.106", "54.187.210.99", "195.201.167.38", "195.201.167.37", "195.201.167.37", "195.201.167.37", "195.201.167.37", "195.201.167.37", "195.201.167.37"],"notaries":[ { "scaletest1":"031ccacb6f86cfafee4637555bfba87d3faf97aa2b973750aed573a74d786d1bb7" },{ "scaletest2":"026744720b6494254837e092bc9fbfd3be33fb77eb7182c3f8f4696ce6c53eef71" },{ "scaletest3":"02187cd81fdc7e11139140953f77c8b5e68230ce8a1a64470d4d2764dd6e2cf9e1" },{ "scaletest4":"02ded6eead8c274f257284fe8704887fb2bd9673d730a8ba53f7c580aacc536b3a" }]}

15
start.sh

@ -1,8 +1,6 @@
#!/bin/bash
# Fetch pubkey
pubkey=$(./printkey.py pub)
passphrase=$(./printkey.py wif)
cp m_notary_blank m_notary_staked
# Start KMD
echo "[KMD] : Starting KMD"
@ -23,19 +21,8 @@ echo "[KMD] : $(./validateaddress.sh KMD)"
# Move our auto generated coins file to the iguana coins dir
chmod +x "$chain"_7776
mv "$chain"_7776 iguana/coins
cat iguana/coins/"$chain"_7776 >> m_notary_staked
echo $'\n' >> m_notary_staked
echo "[$chain] : $(./validateaddress.sh $chain)"
done
echo "passphrase=$passphrase" > /home/$USER/SuperNET/iguana/passphrase.txt
echo "sleep 3" >> m_notary_staked
echo "cd /home/$USER/StakedNotary" >> m_notary_staked
echo "./dpowassets.py" >> m_notary_staked
mv m_notary_staked /home/$USER/SuperNET/iguana/
cp wp_7776 /home/$USER/SuperNET/iguana/
echo "Building Iguana"
#./build_iguana
echo "pubkey=$pubkey" > /home/$USER/SuperNET/iguana/pubkey.txt
./build_iguana
echo "Finished: Please check ALL your chains are synced before running start_iguana.sh"

3
wp_7776

@ -1,3 +0,0 @@
source passphrase.txt
curl -s --url "http://127.0.0.1:7776" --data "{\"method\":\"walletpassphrase\",\"params\":[\"$passphrase\", 9999999]}"
Loading…
Cancel
Save