Skip to content

Instantly share code, notes, and snippets.

@leto
Last active January 30, 2018 12:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leto/7fdc603ef84795863b7fe7859448c570 to your computer and use it in GitHub Desktop.
Save leto/7fdc603ef84795863b7fe7859448c570 to your computer and use it in GitHub Desktop.
Bitcoin Hush Full Node instructions

Bitcoin Hush is actually a Komodo Asset chain, so we need to download and compile that code, which will allow us to connect to the BTCH network. We must tell it a node to connect to that knows about the BTCH asset chain.

BTCH uses RPC port 10161 and a P2P port of 10160, you might need to allow them in your firewall.

  git clone https://github.com/jl777/komodo
  cd komodo
  # This needs to download the Zcash Proving key, around ~1GB file
  ./zcutil/fetch-params.sh
  # This will take some time, replace 2 with the number of CPUs you have
  ./zcutil/build.sh -j2
  # this supply, with the .0001BTCH block reward every 1 minute, approaches 21M BTCH in ~25years
  ./src/komodod -ac_name=BTCH -ac_supply=20998641 -addnode=78.47.196.146 &> btch.log &
  # look at your BTCH logs 
  tail btch.log
  # get the current BTCH network info
  ./src/komodo-cli -ac_name=BTCH getinfo
{
  "version": 1000850,
  "protocolversion": 170002,
  "KMDversion": "0.1.1",
  "notarized": 0,
  "notarizedhash": "0000000000000000000000000000000000000000000000000000000000000000",
  "notarizedtxid": "0000000000000000000000000000000000000000000000000000000000000000",
  "notarizedtxid_height": 676423,
  "KMDnotarized_height": 676380,
  "notarized_confirms": 0,
  "walletversion": 60000,
  "balance": 0.00000000,
  "blocks": 16,
  "longestchain": 6508,
  "timeoffset": 0,
  "tiptime": 1514794526,
  "connections": 2,
  "proxy": "",
  "difficulty": 1,
  "testnet": false,
  "keypoololdest": 1516599361,
  "keypoolsize": 101,
  "paytxfee": 0.00000000,
  "relayfee": 0.00000100,
  "errors": ""
}
@genconc
Copy link

genconc commented Jan 24, 2018

I already have a komodod instance running for KMD. I assumed I needed to run a separate instance per these instructions for BTCH. However the new instance did not automatically listen on ports 10162 (and 10161 for RPC). I had to add port configuration in .komodo/BTCH/BTCH.conf to make that happen.

@gnwankpa
Copy link

works great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment