Marmara v.1.0 setup

Aciklama Gereksinimlere dikkat ediniz. aksi halde gereksinimleri karşılamayan sunucu özelliklerinde hata verebilir. Gereksinim karşılanmayan sunucularda hata ve zararlar tamamen kullanıcıya aittir.,

Requirements:
Min. 4 GB Free RAM
Min. 2 CPUs
OS : Ubuntu 16.04 LTS x86_64

1. kısım – Install the dependency packages

sudo apt-get update
sudo apt-get upgrade -y
sudo apt install ufw
sudo ufw –version
sudo ufw enable
sudo apt-get install ssh
sudo ufw allow “OpenSSH”
sudo apt-get 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 libgtest-dev libqt4-dev libqrencode-dev libdb++-dev ntp ntpdate software-properties-common curl clang libcurl4-gnutls-dev cmake clang -y
sudo apt-get install libsodium-dev

2. kısım – Install nanomsg

cd /tmp
wget https://github.com/nanomsg/nanomsg/archive/1.0.0.tar.gz -O nanomsg-1.0.0.tar.gz –no-check-certificate
tar -xzvf nanomsg-1.0.0.tar.gz
cd nanomsg-1.0.0
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
cmake — build .
sudo ldconfig

git clone https://github.com/nanomsg/nanomsg
cd nanomsg
cmake .
make
sudo make install
sudo ldconfig

 

 3. kısım – Change swap size on to 4GB (Ubuntu)

sudo swapon –show
free -h
df -h
sudo fallocate -l 4G /swapfile
ls -lh /swapfile
sudo chmod 600 /swapfile
ls -lh /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo swapon –show
free -h
sudo cp /etc/fstab /etc/fstab.bak
echo ‘/swapfile none swap sw 0 0’ | sudo tee -a /etc/fstab

4 .kısım

 sudo sysctl vm.swappiness=10
This setting will persist until the next reboot. We can set this value automatically at restart by adding the line to our /etc/sysctl.conf file:
sudo nano /etc/sysctl.conf
vm.swappiness=10
sudo ufw allow 33824

5. kısım – Installing Komodo

cd
git clone https://github.com/marmarachain/Marmara-v.1.0 komodo – – branch marmara-specific – – single-branch
cd komodo
./zcutil/fetch-params.sh
./zcutil/build.sh -j$(nproc)

 

Bu sıralamadan sonra her şey normal çalışır vaziyette olacaktır. Marmara Chain sorunsuz vaziyette kullanabilirsiniz.

Wallet adresi ve Pubkey alıp – pubkey ile Staking mod da başlatma.

chain e start verelim.

src klasorümüze girelim.

cd ~/komodo/src

chaine ilk startımızı verelim.

./komodod -ac_name=MCL -ac_supply=2000000 -ac_cc=2 -addnode=37.148.210.158 -addnode=37.148.212.36 -addressindex=1 -spentindex=1 -ac_marmara=1 -ac_staked=75 -ac_reward=3000000000 &

ardından bir wallet adresi oluşturup not alınız.

./komodo-cli -ac_name=MCL getnewaddress

örnek wallet adresi

RJajZNoEcCRD5wduqt1tna5DiLqiBC23bo

oluşturulan wallet adresini alttaki komuttaki “wallet-adresi” yazan kısma girip enter’a basıyoruz

./komodo-cli -ac_name=MCL validateaddress “wallet-adresi”

bu şekilde çıktı alacaksınız. ve burada yazan pubkey i de not alınız.

{
“: true,
“address”: “RJajZNoEcCRD5wduqt1tna5DiLqiBC23bo”,
“scriptPubKey”: “76a914660a7b5c8ec61c59b80cf8f2184adf8a24bccb6b88ac”,
“segid”: 52,
“ismine”: true,
“iswatchonly”: false,
“isscript”: false,
“pubkey”: “03a3f641c4679c579b20c597435e8a32d50091bfc56e28303f5eb26fb1cb1eee72”,
“iscompressed”: true,
“account”: “”
}

oluşturulan pubkeyi niz : 03a3f641c4679c579b20c597435e8a32d50091bfc56e28303f5eb26fb1cb1eee72

Chaini durduruyoruz.

./komodo-cli -ac_name=MCL stop

Sırada pubkeyimizi kullanarak chain i Mining modun da çalıştırmak.

Aşağıki komutu kullanarak çalıştırabilirsiniz. aşağıda ki “-pubkey=pubkeyburayagirilecek” kısma not aldığınız pubkeyi giriniz. ve alttaki komut satırını düzenledikten sonra “cd komodo/src” klasorüne girip yapıştırın.

./komodod -ac_name=MCL -ac_supply=2000000 -ac_cc=2 -addnode=37.148.210.158 -addnode=37.148.212.36 -addressindex=1 -spentindex=1 -ac_marmara=1 -ac_staked=75 -ac_reward=3000000000 -gen -genproclimit=-1 -pubkey=”pubkeyburayagirilecek” &

Ve artık mining halde çalışıyor sunucumuz.

mining dökümlerinize aşağıdaki kodları kullanarak ulaşabilirsiniz.

./komodo-cli -ac_name=MCL getinfo
./komodo-cli -ac_name=MCL marmarainfo 0 0 0 0 pubkey (to get details)

Marmara Chaini farklı modlarda çalıştırma seçenekleri.

-genproclimit=-1 Şayet -1 (yaparsanız tüm işlemci (CPU) günü kullanır.)
-genproclimit=1 Şayet 1 (yaparsanız tek işlemci kullanır.)
-genproclimit=0 Şayet 0 (yaparsanız Staking modunda çalışır ve Aktif coini kullanarak Staking yaparsınız.)

Not : Sunucu kapanma durumunda yapılacaklar.

cd /komodo/src
./komodo-cli -ac_name=MCL stop
./komodod -ac_name=MCL -ac_supply=2000000 -ac_cc=2 -addnode=37.148.210.158 -addnode=37.148.212.36 -addressindex=1 -spentindex=1 -ac_marmara=1 -ac_staked=75 -ac_reward=3000000000 -gen -genproclimit=-1 -pubkey=”pubkeyburayagirilecek” &

MCL params.

./komodo-cli -ac_name=MCL marmaracreditloop txid
./komodo-cli -ac_name=MCL marmarainfo firstheight lastheight minamount maxamount [currency issuerpk]
./komodo-cli -ac_name=MCL marmaraissue receiverpk amount currency matures approvaltxid
./komodo-cli -ac_name=MCL marmaralock amount unlockht
./komodo-cli -ac_name=MCL marmarapoolpayout perc firstheight “[[\”pubkey\”:shares], …]”
./komodo-cli -ac_name=MCL marmarareceive senderpk amount currency matures batontxid
./komodo-cli -ac_name=MCL marmarasettlement batontxid
./komodo-cli -ac_name=MCL marmaratransfer receiverpk amount currency matures approvaltxid
./komodo-cli -ac_name=MCL marmaraaddress
./komodo-cli -ac_name=MCL marmarainfo 0 0 0 0 //to get details
./komodo-cli -ac_name=MCL walletaddress amount

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.