- fixed incorrect coin cache usage causing chain forks
- staking utxo processing performance improvements
- loop transaction validation fixes
- chain security fixes and improvements
- fixed settlement failure on the loop holder node
- fixed memory leaks
- fixed daemon crash if multiple setgenerate true 0 calls are done
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
sudo apt-get update
sudo apt-get upgrade -y
sudo apt install ufw
sudo ufw --version
echo y | 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
2.1
git clone https://github.com/nanomsg/nanomsg
cd nanomsg
cmake .
make
sudo make install
sudo ldconfig
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
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
cd
git clone https://github.com/marmarachain/Marmara-v.1.0 komodo --branch master --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. Chain'i sorunsuz vaziyette kullanabilirsiniz.
Wallet adresi ve Pubkey alıp - pubkey ile Staking mod da başlatma.
src klasorümüze girelim.
cd ~/komodo/src
./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 &
./komodo-cli -ac_name=MCL getnewaddress
RJajZNoEcCRD5wduqt1tna5DiLqiBC23bo
./komodo-cli -ac_name=MCL validateaddress "wallet-adresi"
{
": true,
"address": "RJajZNoEcCRD5wduqt1tna5DiLqiBC23bo",
"scriptPubKey": "76a914660a7b5c8ec61c59b80cf8f2184adf8a24bccb6b88ac",
"segid": 52,
"ismine": true,
"iswatchonly": false,
"isscript": false,
"pubkey": "03a3f641c4679c579b20c597435e8a32d50091bfc56e28303f5eb26fb1cb1eee72",
"iscompressed": true,
"account": ""
}
oluşturulan pubkeyi niz : 03a3f641c4679c579b20c597435e8a32d50091bfc56e28303f5eb26fb1cb1eee72
./komodo-cli -ac_name=MCL stop
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" &
./komodo-cli -ac_name=MCL getinfo
./komodo-cli -ac_name=MCL marmarainfo 0 0 0 0 pubkey (to get details)
-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.)
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" &
./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 <pubkey> //to get details
./komodo-cli -ac_name=MCL walletaddress amount
wallet.dat
dosyası bütün varlıklarınızın bulunduğu güvenli bir dosyadır. yedeğini almayı unutmatınız!
Linux'ta dosya burada bulunur: ~/.komodo/MCL/wallet.dat
Bu dosyayı yedeklemenin bir yolu, dosyanın bir kopyasını arşivlemektir.
# Dosyayı kopyalayın
cp -av ~/.komodo/MCL/wallet.dat ~/wallet.dat
# Dosyayı yeniden adlandır
mv ~/wallet.dat ~/2019-05-17-wallet_backup.dat
# Arşiv yapmak için
tar -czvf ~/2019-05-17-wallet_backup.dat.tgz ~/2019-05-17-wallet_backup.dat
# Son dosyayı güvenli bir yere taşıyıp saklayınız.
- fixed incorrect coin cache usage causing chain forks
- staking utxo processing performance improvements
- loop transaction validation fixes
- chain security fixes and improvements
- fixed settlement failure on the loop holder node
- fixed memory leaks
- fixed daemon crash if multiple setgenerate true 0 calls are done
Pay attention to the requirements. otherwise, it may fail in server properties that do not meet the requirements. Errors and damages on these servers are the responsibility of the user.
Requirements:
Min. 4 GB Free RAM
Min. 2 CPUs
OS : Ubuntu 16.04 LTS x86_64
sudo apt-get upgrade -y
sudo apt install ufw
sudo ufw --version
echo y | 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
2.1
git clone https://github.com/nanomsg/nanomsg
cd nanomsg
cmake .
make
sudo make install
sudo ldconfig
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
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
cd
git clone https://github.com/marmarachain/Marmara-v.1.0 komodo --branch master --single-branch
cd komodo
./zcutil/fetch-params.sh
./zcutil/build.sh -j$(nproc)
*** Note: The installation process takes 20 to 45 minutes.
Start at staking mode by getting wallet address and pubkey
Go to src folder.
cd ~/komodo/src
./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 -pubkey="pubkey to enter here" &
./komodo-cli -ac_name=MCL getnewaddress
RJajZNoEcCRD5wduqt1tna5DiLqiBC23bo
To confirm this wallet address and then create the pubkey, Text this wallet address in quotation marks , “Enter your wallet address here” secion.
./komodo-cli -ac_name=MCL validateaddress "Enter your wallet address here"
{
": true,
"address": "RJajZNoEcCRD5wduqt1tna5DiLqiBC23bo",
"scriptPubKey": "76a914660a7b5c8ec61c59b80cf8f2184adf8a24bccb6b88ac",
"segid": 52,
"ismine": true,
"iswatchonly": false,
"isscript": false,
"pubkey": "03a3f641c4679c579b20c597435e8a32d50091bfc56e28303f5eb26fb1cb1eee72",
"iscompressed": true,
"account": ""
}
this is the your pubkey : 03a3f641c4679c579b20c597435e8a32d50091bfc56e28303f5eb26fb1cb1eee72
./komodo-cli -ac_name=MCL stop
You can run it by using following command. text your pubkey to the area "-pubkey="pubkey to enter here" and then, copy to all command and then, when it is at "cd komodo/src" , paste it and click "enter"
./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="pubkey to enter here" &
./komodo-cli -ac_name=MCL getinfo
./komodo-cli -ac_name=MCL marmarainfo 0 0 0 0 pubkey (to get details)
-genproclimit=-1 Şayet -1 (If you make -1, all processor (cpu) use.)
-genproclimit=1 Şayet 1 (If you make 1, single processor use.)
-genproclimit=0 Şayet 0 (if you make 0, it run at Staking mode and you can do staking by using active coin.)
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="pubkey to enter here" &
./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 <pubkey> //to get details
./komodo-cli -ac_name=MCL walletaddress amount
We can not stress enough the importance of backing up your wallet.dat
file.
On Linux, the file is located here: ~/.komodo/MCL/wallet.dat
One method to backup this file is to archive a copy of the file.
# Copy the file
cp -av ~/.komodo/MCL/wallet.dat ~/wallet.dat
# Rename file
mv ~/wallet.dat ~/2019-05-17-wallet_backup.dat
# To make archive
tar -czvf ~/2019-05-17-wallet_backup.dat.tgz ~/2019-05-17-wallet_backup.dat
# Move the final file to a secure location
You can reach Marmara Credit Loop guide here.
https://github.com/marmarachain/Marmara-Versiyon-1.0-setup/issues/1
B. Gültekin Çetiner http://twitter.com/drcetiner & ~Paro, (c) 2019
Betül Zengin
https://tr.linkedin.com/in/bet%C3%BCl-zengin-6839b816a
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.