Post
Topic
Board Announcements (Altcoins)
Re: [ANN] 🔥 Cryptoncoin(CCN)-PoW-Exchange
by
cryptonclub
on 02/02/2020, 14:38:45 UTC
Setup CCN masternode

Prepare your VPS/Dedicated Server

Require Ubuntu Server 14.04/16.04/18.04 .

Update your Ubuntu machine.
Code:
sudo apt-get update
sudo apt-get upgrade

Install the required dependencies.
Code:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libboost-all-dev libboost-program-options-dev
sudo apt-get install libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common

Install Berkeley DB.
Code:
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

Install BLS signatures.
Code:
cd ~/
wget https://github.com/codablock/bls-signatures/archive/v20181101.zip
unzip v20181101.zip
cd bls-signatures-20181101
cmake .
sudo make install

Create a directory for the source code.
Code:
cd ~/
mkdir source_code
cd source_code
Download the source code from Github
Code:
git clone https://github.com/cryptonclub/cryptoncoin.git

cd cryptoncoin

Execute the following commands to start compiling.
Code:
./autogen.sh
./configure
make

make install

cd src

strip cryptoncoind

sudo mv cryptoncoind cryptoncoin-cli cryptoncoin-tx /usr/bin/
Create the config file.
Code:
mkdir $HOME/.cryptoncoin
nano $HOME/.cryptoncoin/cryptoncoin.conf

Paste the following lines in cryptoncoin.conf.
Code:
#----
rpcuser=rpc_cryptoncoin
rpcpassword=f5f23fas87tjhgiy7ihe552ff860
rpcallowip=127.0.0.1
#----
listen=1
server=1
daemon=1
maxconnections=64
#----
#masternode=1
#masternodeblsprivkey=
externalip=REPLACE_WITH_EXTERNAL_IP_OF_VPS
#----

Leave the fields “masternode” and “masternodeblsprivkey” commented out.

Replace the text “REPLACE_WITH_EXTERNAL_IP_OF_VPS” with the external IP address of your VPS.

E.G. externalip=54.18.54.23

Start your node with the following command.
Code:
./cryptoncoind

Wait until the command “mnsync status” returns the status “MASTERNODE_SYNC_FINISHED”.
examplecoin-cli mnsync status

Example output

Code:
{
  "AssetID": 1,
  "AssetName": "MASTERNODE_SYNC_FINISHED",
  "AssetStartTime": 1559845678,
  "Attempt": 0,
  "IsBlockchainSynced": true,
  "IsSynced": true,
  "IsFailed": false
}

Send the collateral 5000 CCN

Open your wallet and wait until your wallet has downloaded the complete blockchain.

Go to “Tools”.
Click “Debug console”.
This is the console where you will execute all commands.

Create a new address for the fee.
Code:
getnewaddress

Example output

CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz

Send 1 coin to the address that you just created.

Create a new address for the masternode collateral.
Code:
getnewaddress

Example output

CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz

Transfer the required amount of coins to the address that you just created.
Wait until the transaction has the required masternode confirmations.

Identify the funding transaction.
masternode outputs

Example output


Code:
{
  "6e2fa7957ca92a526491a5528c215de46b91f640160d84bcbb9f509da7387622": "0"
}


Register your masternode

Generate a BLS key pair.
bls generate

Example output


bls generate
Code:
{
  "secret": "0acbf6f183d0c9b794b9bc0dba25f8a1a1eca21aa4f2e4a86ecd3120a59efb35",
  "public": "064bb1741f4707cfe3629176857c41e0d23cbe751061fe5d0d67b506db10c8f3f6f2b684c3cec8e4a128193a001d12e9"
}


Place the secret key in the config file of your masternode and uncomment the values “masternode” and “masternodeblsprivkey”.

Example config
Code:
#----
rpcuser=rpc_cyptoncoin
rpcpassword=f5f23fas53ebijygjy7ihe552ff860
rpcallowip=127.0.0.1
#----
listen=1
server=1
daemon=1
maxconnections=64
#----
masternode=1
masternodeblsprivkey=0acbf6f183d0c9b794b9bc0dba25f8a1a1eca21aa4f2e4a86ecd3120a59efb35
externalip=54.18.54.23
#----

Restart your masternode using the following commands.
cyptoncoin-cli stop
cyptoncoind


Prepare a ProRegTx transaction

Create a new address for the owner.
getnewaddress

Example output

CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz

Create a new address for the voting.
getnewaddress

Example output

CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz

Create a new address for the payout.
getnewaddress

Example output

CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz

Modify the following line.
protx register_prepare fdab9dff1ff9caf5d291905ad43b9f7d69775189d4d22cb085d7fedd94ea1c6a 0 136.144.171.201:9999 CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz 064bb1741f4707cfe3629176857c41e0d23cbe751061fe5d0d67b506db10c8f3f6f2b684c3cec8e 4a128193a001d12e9 CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz 0 CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz

fdab9dff1ff9caf5d291905ad43b9f7d69775189d4d22cb085d7fedd94ea1c6a - Transaction id from the command “masternode outputs”.

0 - Single digit from the command “masternode outputs”.

54.18.54.23:9999 - External IP address and P2P of your Masternode.

CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz - The new address generated above for the owner.

064bb1741f4707cfe3629176857c41e0d23cbe751061fe5d0d67b506db10c8f3f6f2b684c3cec8e 4a128193a001d12e9 - The BLS public key generated above.

CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz - The new address generated above for the voting.

0 - Leave this value at 0.

CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz - The new address generated above for the payment.

CUsRwubuUuy4BXppUBxNB7FJdUC2uD8umz - The new address generated above for the fee.

Paste the modified line into the console of your wallet.

Example output


{
  "tx": "0300010001a55ee8d6ad1d5c1409a5328f4e53e80e3e7c83cf85253594141505fa64c5eeec00000 00000feffffff0121dff505000000001976a9144f18fd993c0f9458fafb4985536dd358e9899a9f 88ac00000000d10100000000006a1cea94ddfed785b02cd2d4895177697d9f3bd45a9091d2f5caf 91fff9dabfd0000000000000000000000000000ffff88909c3714c4e172bd9c230db9cac3e44694 5cff2ea6720c2eca064bb1741f4707cfe3629176857c41e0d23cbe751061fe5d0d67b506db10c8f 3f6f2b684c3cec8e4a128193a001d12e9b9772f1f7b0af05a67883806a4f60ddde4ecbf9e000019 76a9143206f92dd6acc1a481cbb88fcadc19d0507bcb7d88ac0c5537044361500975adba10f9299 f684f62a7f544e8e671638fee2c3914349f00",
  "collateralAddress": "TRPLV4dXmEFMSgXg2Xu6skN9pmw8TAo4N5",
  "signMessage": "TEXj9AgdCh1giGmr1BXpYsngmkMkthNngD|0|TWXGVYPHGA4gWcZ9Zp2qnubFVNagvorwEN|TSsrnbtJGYD1WmVsrsvauuwxibJyqkkqqL|ac19e80b02d4e8a27feb42073114070a281a2b788ba064803e8064d259b22ebc"
}


Sign the ProRegTx transaction

Modify the following line.
signmessage "TRPLV4dXmEFMSgXg2Xu6skN9pmw8TAo4N5" "TEXj9AgdCh1giGmr1BXpYsngmkMkthNngD|0|TWXGVYPHGA4gWcZ9Zp2qnubFVNagvorwEN|TSsrnbtJGYD1WmVsrsvauuwxibJyqkkqqL|ac19e80b02d4e8a27feb42073114070a281a2b788ba064803e8064d259b22ebc"

TRPLV4dXmEFMSgXg2Xu6skN9pmw8TAo4N5 - The “collateralAddress” value of the above output.

TEXj9AgdCh1giGmr1BXpYsngmkMkthNngD|0|TWXGVYPHGA4gWcZ9Zp2qnubFVNagvorwEN|TSsrnbtJGYD1WmVsrsvauuwxibJyqkkqqL|ac19e80b02d4e8a27feb42073114070a281a2b788ba064803e8064d259b22ebc - The “signMessage” value of the above output.

Paste the modified line into the console of your wallet.

Example output

H/d9tkCSzqdYh8qLL1c+KDIlrb4vtFSfdxd88XDc3U/hRZ6lMuAR8TULy7vh1YXGk6AYFFV1xyPNuEdZVMN9SdI=


Submit the signed message

Modify the following line.
protx register_submit 0300010001a55ee8d6ad1d5c1409a5328f4e53e80e3e7c83cf85253594141505fa64c5eeec00000 00000feffffff0121dff505000000001976a9144f18fd993c0f9458fafb4985536dd358e9899a9f 88ac00000000d10100000000006a1cea94ddfed785b02cd2d4895177697d9f3bd45a9091d2f5caf 91fff9dabfd0000000000000000000000000000ffff88909c3714c4e172bd9c230db9cac3e44694 5cff2ea6720c2eca064bb1741f4707cfe3629176857c41e0d23cbe751061fe5d0d67b506db10c8f 3f6f2b684c3cec8e4a128193a001d12e9b9772f1f7b0af05a67883806a4f60ddde4ecbf9e000019 76a9143206f92dd6acc1a481cbb88fcadc19d0507bcb7d88ac0c5537044361500975adba10f9299 f684f62a7f544e8e671638fee2c3914349f00 H/d9tkCSzqdYh8qLL1c+KDIlrb4vtFSfdxd88XDc3U/hRZ6lMuAR8TULy7vh1YXGk6AYFFV1xyPNuEdZVMN9SdI=

0300010001a55ee8d6ad1d5c1409a5328f4e53e80e3e7c83cf85253594141505fa64c5eeec00000 00000feffffff0121dff505000000001976a9144f18fd993c0f9458fafb4985536dd358e9899a9f 88ac00000000d10100000000006a1cea94ddfed785b02cd2d4895177697d9f3bd45a9091d2f5caf 91fff9dabfd0000000000000000000000000000ffff88909c3714c4e172bd9c230db9cac3e44694 5cff2ea6720c2eca064bb1741f4707cfe3629176857c41e0d23cbe751061fe5d0d67b506db10c8f 3f6f2b684c3cec8e4a128193a001d12e9b9772f1f7b0af05a67883806a4f60ddde4ecbf9e000019 76a9143206f92dd6acc1a481cbb88fcadc19d0507bcb7d88ac0c5537044361500975adba10f9299 f684f62a7f544e8e671638fee2c3914349f00 - The “tx” value of the “protx register_prepare” command.

H/d9tkCSzqdYh8qLL1c+KDIlrb4vtFSfdxd88XDc3U/hRZ6lMuAR8TULy7vh1YXGk6AYFFV1xyPNuEdZVMN9SdI= - The output of the above command.

Paste the modified line into the console of your wallet.

Example output

7da2e1187202a1a497beca05e0e53a6e4df0dc06046f72fbf8b61c942db2982a

Your masternode is now registered and will appear in the masternode list.

You can check the status of your masternode using the command "masternode status".
examplecoin-cli masternode status

Example output


{
  "outpoint": "fdab9dff1ff9caf5d291905ad43b9f7d69775189d4d22cb085d7fedd94ea1c6a-0",
  "service": "54.18.54.23:9999",
  "proTxHash": "7da2e1187202a1a497beca05e0e53a6e4df0dc06046f72fbf8b61c942db2982a",
  "collateralHash": "fdab9dff1ff9caf5d291905ad43b9f7d69775189d4d22cb085d7fedd94ea1c6a",
  "collateralIndex": 0,
  "dmnState": {
    "service": "54.18.54.23:9999",
    "registeredHeight": 145,
    "lastPaidHeight": 0,
    "PoSePenalty": 0,
    "PoSeRevivedHeight": -1,
    "PoSeBanHeight": -1,
    "revocationReason": 0,
    "ownerAddress": "TWXGVYPHGA4gWcZ9Zp2qnubFVNagvorwEN",
    "votingAddress": "TSsrnbtJGYD1WmVsrsvauuwxibJyqkkqqL",
    "payoutAddress": "TEXj9AgdCh1giGmr1BXpYsngmkMkthNngD",
    "pubKeyOperator": "064bb1741f4707cfe3629176857c41e0d23cbe751061fe5d0d67b506db10c8f3f6f2b684c3cec8e 4a128193a001d12e9"
  },
  "state": "READY",
  "status": "Ready"
}