$THC Mac Walkthrough
Gather THC addresses for migration from your HempCoin QT wallet by
first Opening your HempCoin QT wallet
this does NOT have to be synched fully.
Select File on the Menubar.
Select Receiving Addresses.
Copy Each Address that you want to migrate.
Go Unlock your QT wallet by Selecting Settings on the Menubar, then unlock wallet.
Enter your passphrase here if you created one to unlock your wallet then Press OK.
Open debug console by Selecting Tools on the Menubar, then debug console.
Enter (dumpprivkey Txxxxx) into the console, without the () and place your THC address in place of Txxxxx.
This will return your Private Key for the address you just input, KEEP THIS SAFE!!
Open a terminal to install THC from Source
Ensure commandline tools from apple/xcode are installed. Issue the following command in a terminal.
xcode-select --install
Brew is needed to install dependencies, if you have latest brew installed in your system already, skip this and install the dependencies directly:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
These are the dependencies needed to install with brew:
brew update brew upgrade brew tap discoteq/discoteq; brew install flock brew install autoconf autogen automake brew install gcc@6 brew install binutils brew install protobuf brew install coreutils brew install wget cd ~ git clone https://github.com/komodoplatform/komodo --branch master --single-branch cd komodo ./zcutil/fetch-params.sh ./zcutil/build.sh -j$(nproc) cd ~ mkdir .komodo cd .komodo mkdir THC cd THC nano THC.conf
Add the following lines to the THC.conf file (replace rpcuser and rpcpassword with your own) .
rpcuser=usernameChangeItToSomethingSecure rpcpassword=passwordChangeItToSomethingSecure rpcport=36790 server=1 txindex=1 rpcworkqueue=256 rpcallowip=127.0.0.1 rpcbind=127.0.0.1 addnode=1.eu.thc.electrum.dexstats.info:10020 addnode=2.eu.thc.electrum.dexstats.info:10020 daemon=1
Change rpcpassword and rpcuser to something secure
press Ctrl + X to exit.
Press Y to select "Yes" to save changes you have just made.
Press Enter to select the file to save these changes to, it will default to the correct path.
cd ~ cd komodo/src
Now you can start THC daemon to sync with the network.
./komodod -ac_name=THC -ac_supply=251253103 -ac_reward=360000000,300000000,240000000,180000000,150000000,90000000,0 -ac_staked=100 -ac_eras=7 -ac_end=500001,1000001,1500001,2000001,2500001,4500001,0 -ac_perc=233333333 -ac_cc=2 -ac_ccenable=229,236,240 -ac_script=2ea22c8020987fad30df055db6fd922c3a57e55d76601229ed3da3b31340112e773df3d0d28103120c008203000401ccb8 -ac_founders=150 -ac_cbmaturity=1 -ac_sapling=1 -addnode=1.eu.thc.electrum.dexstats.info:10020 -addnode=2.eu.thc.electrum.dexstats.info:10020 -earlytxid=7e4a76259e99c9379551389e9f757fc5f46c33ae922a8644dc2b187af2a6adc1
You might see some outputs in terminal where you started the THC daemon. So, open a new tab or new terminal window and go to THC data directory to see updated logs of THC:
tail -f ~/.komodo/THC/debug.log
If you’re importing more than 1 THC WIF you should do,
./komodo-cli -ac_name=THC importprivkey <THC WIF> "" false 0 212
for all them but..
The very last one,
./komodo-cli -ac_name=THC importprivkey <THC WIF> "" true 0 212
for the last one. True/false is telling the daemon whether or not to rescan, so if you use true for all of them it may take a very long time.
Please join the Discord for support:
For technical and other info:
https://docs.komodoplatform.com/komodo/installation.html
On staking:
https://docs.komodoplatform.com/basic-docs/komodo-api/generate.html
To LOCK 100k THC:
1 - Create new address
./komodo-cli -ac_name=THC getnewaddress
2 - Validate address
./komodo-cli -ac_name=THC validateaddress <Rxxxx>
this will return a value in { } you need to copy the pubkey
3 - Set public key for THC while Daemon is running:
./komodo-cli -ac_name=THC setpubkey <pubkey>
4 - Lock:
./komodo-cli -ac_name=THC rewardslock THC 5b24f3dfc85fe880450696ff23f1268ab9b6e97cd21b09857f78b37e33c5b543 <amount to lock>
5 - Broadcast the output of rewardslock command which will be a wall of hex, take that hex and input:
./komodo-cli -ac_name=THC sendrawtransaction <that hex>
Your coins will now be locked.
To stop the wallet:
./komodo-cli -ac_name=THC stop
Show current block & wallet balance:
./komodo-cli -ac_name=THC getinfo
Create new receiving address:
./komodo-cli -ac_name=THC getnewaddress
Send to an address:
./komodo-cli -ac_name=THC sendtoaddress <Raddress> <Amount>
replace "Raddress" with your newly created address returned from getnewaddress and the amount you want to send
htop: To monitor system load
slurm: To monitor network load
tmux: To make panes