Browse Source

starting to clean

master
jahway603 3 years ago
parent
commit
bbfdba7fbc
  1. 37
      README.md
  2. 8
      coins/komodo.json

37
README.md

@ -1,4 +1,4 @@
# Mining stratum for Komodo and Komodo assetchains.
# Mining stratum for Hush and Hush assetchains.
## Table of Contents
* [Differences between this and Z-NOMP](#differences-between-this-and-z-nomp)
@ -8,11 +8,10 @@
* [License](#license)
## Differences between this and Z-NOMP
* This is meant for Komodo mining
* This is meant for Hush mining
* Founders, Treasury, and other ZEC/ZEN specific stuff is removed
## Using Docker (easy)
This method sets up 2 docker containers, one with knomp and one with redis.
It will directly use your host system's network so you can connect to the coin daemon without opening up RPC beyond 127.0.0.1.
@ -24,7 +23,7 @@ The ports it listens on must not be in use, this includes 8080 for the website,
### Docker Install
```
git clone https://github.com/webworker01/knomp.git
git clone https://git.hush.is/jahway603/knomp.git
cd ./knomp
cp config_example.json config.json
```
@ -69,25 +68,22 @@ npm start
### Install Daemon
Some initial setup
```shell
# The following packages are needed to build both Komodo and this stratum:
# The following packages are needed to build both Hush and this stratum:
sudo apt-get update
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-openssl-dev bsdmainutils automake curl libboost-dev libboost-system-dev libsodium-dev jq redis-server nano -y
```
Now, let's build Komodo
Now, let's build Hush
```shell
git clone https://github.com/jl777/komodo -b dev
cd komodo
zcutil/fetch-params.sh
zcutil/build.sh -j8
strip src/komodod
strip src/komodo-cli
git clone https://git.hush.is/hush/hush3
cd hush3
./build.sh -j$(nproc)
```
Now, let's run the assets. This will start ALL of the assets might take a day or so to sync, depending on system speed/network connection.
_If you are setting up a single chain to mine and/or don't know what pubkey is, skip this step and use the startup params for the komodod daemon as provided by the individual coin's team._
_If you are setting up a single chain to mine and/or don't know what pubkey is, skip this step and use the startup params for the hushd daemon as provided by the individual coin's team._
```shell
cd ~/komodo/src
cd ~/hush3/src
./assetchains
```
@ -103,18 +99,18 @@ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
Now, let's build our stratum and run it. This will install the pool and configure it for all the assetchains on your system automatically. It must be run from the same user as the coin deamons were launched, as it pulls the rpcuser/pass from the conf file in the home directory.
```shell
git clone https://github.com/webworker01/knomp
cd knomp
git clone https://git.hush.is/jahway603/knomp.git
cd ./knomp
npm install
cp config_example.json config.json (and configure it)
nano gencfg.sh
```
Edit line 3 in so that it has your own KMD based address, CTRL-X then Y to save and exit
Edit line 3 in so that it has your own HUSH based address, CTRL-X then Y to save and exit
We need to generate the coins files (coin daemon must be running!): `gencfg.sh <coin name>`
You can run just gencfg.sh with no coin name to use the assetchains.json in komodo/src directory for all coins. Make sure you edit the template with the correct values you want before running the config generator.
You can run just gencfg.sh with no coin name to use the assetchains.json in hush3/src directory for all coins. Make sure you edit the template with the correct values you want before running the config generator.
Finally we are ready to start the pool software
@ -160,13 +156,12 @@ In your coins file add:
```
### Sapling and Sapling Payment Support
In coins/pirate.json file:
In coins/hush.json file:
```
"privateChain": true,
"burnFees": true,
"sapling": 152855
"sapling": true
```
Please note, PIRATE sapling became active around 2018-12-15 01:15UTC at block 152855 Now that this has passed this can just be set to `"sapling":true`
In pool_config:
```

8
coins/komodo.json

@ -1,8 +0,0 @@
{
"name": "komodo",
"symbol": "kmd",
"algorithm": "equihash",
"txfee": 0.00005,
"peerMagic": "f9eee48d",
"sapling": true
}
Loading…
Cancel
Save