Skip to content

Commercium gradual transition platform

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
COPYING
Notifications You must be signed in to change notification settings

bchtrue/CommerciumContinuum

 
 

Repository files navigation

CommerciumContinuum

Commercium gradual transition platform

Technical Specifications

  • Algorithm: Equihash
  • Max Supply: 58 million CMM
  • Block Time: 60 Seconds
  • Block Reward: 8 CMM, 35% to Masternode 7.5% to Founders and Stake wallet.

Dependencies

#The following packages are needed:
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget libcurl4-gnutls-dev bsdmainutils automake curl

Linux

git clone https://github.com/CommerciumBlockchain/CommerciumContinuum
cd CommerciumContinuum
./zcutil/fetch-params.sh
./zcutil/build.sh

MacOSX and Windows

Review Dockerfile

Masternode Setup

A step by step guide howto setup your Commercium Masternode on Windows/Linux/MacOS local wallet & Linux VPS as remote MN.

You also can run your masternode at your own computer, but it must be operational 24/7 and have a dedicated IP address. When you run your masternode your funds are safe and stored at your local wallet, not at the VPS (linux machine most cases).

Requirements:

  • 100000 CMM + 0.001 CMM to pay transaction fees
  • Commercium wallet on local Windows/Linux/MacOSX PC and VPS
  • VPS with at least 1024 RAM, 1 CPU, >20 GB HDD or more
  • better to use latest ubuntu (18.04) for VPS. If you run 16.04 just install: apt-get install libgomp1
  • putty (putty.org)

PART 1: Local machine setup

Fresh wallet installation:

  1. Install latest Commercium wallet on your machine from this link:https://github.com/CommerciumBlockchain/CommerciumContinuum/releases Follow this video instructions for help:https://youtu.be/AQMogS3Enjs — Windows https://youtu.be/xuLRBuvaSgU — MacOS

Upgrade old wallet

If you are already have old Commercium wallet then backup your data, export you private keys to import them later at new wallet: Backup `~/.commercium` - directory for MacOSX/Linux Windows users (use command shell cmd.exe). Press Win+r-> write "cmd" -> enter -> copy&paste his commands into the shell: move %APPDATA%/ZcashParams %APPDATA%/ZcashParams.backup move %APPDATA%/Commercium %APPDATA%/Commercium.backup

  1. We must edit our wallet configuration file commercium.conf.
  • Linux: ~/.commercium folder
  • Windows: %appdata%/Commercium folder
  • MAC: ~/Library/Application Support/Commercium

Enter these commands on the Windows shell: cd %appdata%/Commercium notepad commercium.conf or open commercium.conf for editing with other editor. I suggest to edit it with external editor like Notepad++ or some other, because the default notepad on Windows 7 did not recognize unix wrapping at this file)

Append this new line to the end of the file:

txindex=1

  1. Exit windows wallet. Next we will do a full blockchain rescan to create transaction index.

Run this command at Windows shell:commerciumd.exe -reindex

Linux shell: ./commercium -reindex

OR ALTERNATIVE:

Windows:

del %APPDATA%\Commercium\peers.dat

del %APPDATA%\Commercium\budget.dat

del %APPDATA%\Commercium\mn*.dat

del %APPDATA%\Commercium\sporks /Q

del %APPDATA%\Commercium\chainstate /Q

del %APPDATA%\Commercium\blocks /Q

del %APPDATA%\Commercium\blocks\index /Q

del %APPDATA%\Commercium\database /Q

Linux:

rm -rf ~/.commercium/blocks

rm -rf ~/.commercium/database

rm -rf ~/.commercium/chainstate

rm -rf ~/.commercium/sporks

rm ~/.commercium/mn*.dat

rm ~/.commercium/budget.dat

rm ~/.commercium/peers.dat

MacOSX:

rm -rf Library/Application\ Support/Commercium/blocks

rm -rf Library/Application\ Support/Commercium/database

rm -rf Library/Application\ Support/Commercium/chainstate

rm -rf Library/Application\ Support/Commercium/sporks

rm Library/Application\ Support/Commercium/mn*.dat

rm Library/Application\ Support/Commercium/budget.dat

rm Library/Application\ Support/Commercium/peers.dat

Run new wallet release and wait until all block will be resynced again. At QT Windows wallet check tap “commerciumd” and wait until “Downloading blocks” will be 100% done. If you run -reindex then close you cmd shell and run QT wallet.

  1. At this step we will send your CMM masternode coins to some new collateral address (you’ll receive masternode reward to this address). Create new “t-Addr”. You can do this at “Receive” tab. Now, send coins to this address from “send” tab. Transfer exactly 100000 CMM to this address. WARNING: save new private key for this new address and make wallet.dat backup!
  2. Then need to edit masternode config file to setup masternode: Open masternode.conf for editing:
Format: alias IP:port masternodeprivkey(NODEKEY) collateral_output_txid(OUTPUTTXID) collateral_output_index(OUTPUTINDEX) 
# Example: mn1 127.0.0.2:51474 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0

As you see above to setup masternode we must have the following data: ALIAS — masternode alias IP — VPS IP PORT — always the same 2019 NODEKEY — masternode private key (looks like generated numbers and charts) OUTPUTTXID — collateral output txid OUTPUTINDEX — collateral output index (is usually 0)

  1. Bellow is where all this requested information comes from:

6.1 Generating NODEKEY masternode private key. Run this at local wallet where you store your coins:

commercium-cli.exe masternode genkey

Output of this command is your Masternode Private Key (NODEKEY)

6.2 OUTPUTTXID and OUTPUTINDEX

commercium-cli.exe masternode outputs

show “txhash” and “outputidx”. txhash is OUTPUTTXID / outputid is OUTPUTINDEX

6.3 Now you are ready to add all this information to masternode.conf.

Format: ALIAS IP:2019 NODEKEY OUTPUTTXID OUTPUTINDEX

6.4 Save your masternode.conf changes.

PART 2 (VPS Setup)

Masternode setup process:

Connect with Putty to your VPS. Just enter IP address of your VPS at the Putty windows and login with your VPS username/password. Create new user adduser cmmuser. If you need video instruction check this video: https://youtu.be/vVVhtQ5Wd3g

(secure your vps)

  1. linux shell: wget https://github.com/CommerciumBlockchain/CommerciumContinuum/releases/download/v1.0.5/commercium_continuum-v1.0.5-linux.tar.gz
  2. Extract files with following commands:

tar -xzvf commercium_continuum-v1.0.5-linux.tar.gz cd ~ (to user home) mkdir .commercium

echo -e "txindex=1\ndaemon=1\nrpcuser=PASSWORD\nrpcpassword=PASSWORD\nmasternode=1\nmasternodeprivkey=NODEKEY" > .commercium/commercium.conf

or create new config file at .commercium directory and edit:

nano ~/.commercium/commercium.conf

add following:

txindex=1
daemon=1
rpcuser=PASSWORD
rpcpassword=PASSWORD
masternode=1
masternodeprivkey=NODEKEY

NODEKEY - is the key from previous part 6.1 PASSWORD - random password. Use secure password.

YOU MASTERNODE IS READY TO START!

on local wallet windows: commercium-cli.exe startmasternode all missing alternative command: commercium-cli.exe startalias MASTERNODEALIAS

on vps ./commercium-cli masternode debug must display "Masternode successfully started." if not, wait 20 minutes and start the masternode again using the command above.

About

Commercium gradual transition platform

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
COPYING

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 72.8%
  • Makefile 8.7%
  • C 7.2%
  • Python 6.9%
  • M4 1.9%
  • Shell 1.3%
  • Other 1.2%