Browse Source

Merge pull request #2 from blackjok3rtt/master

Fix Magic conversion
dev
Web Worker 6 years ago
committed by GitHub
parent
commit
3be86eeda3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      README.md
  2. 2
      gencfg.sh

20
README.md

@ -30,27 +30,27 @@ zcutil/build.sh -j8
strip src/komodod
strip src/komodo-cli
```
Now, let's run an asset to mine (MGNX in this case)
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.
```shell
cd ~/komodo/src
./komodod -ac_name=MGNX -ac_supply=12000000 -ac_staked=90 -ac_reward=2000000000 -ac_halving=525960 -ac_cc=2 -ac_end=2629800 -addnode=45.32.236.224 -gen -genproclimit=1 &
./assetchains.old
```
To check on our Assetchain status, we use something like:
```shell
# You always need to add ac_name to the cli or it will poll komodod for KMD
cd ~/komodo/src
./komodo-cli -ac_name=MGNX getwalletinfo
```
We need npm installed
Once all these chains have synced up we can configure the stratum.
We need node and npm installed
```shell
cd ~
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
```
Now, let's build our stratum and run it (this stage assumes you already have Redis properly installed and running)
This will install the stratum 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
./gencfg.sh
npm install
npm start
```
@ -65,4 +65,4 @@ Forked from ComputerGenie repo (deleted)
Released under the GNU General Public License v2
http://www.gnu.org/licenses/gpl-2.0.html
_Forked from [z-classic/z-nomp](https://github.com/z-classic/z-nomp) which is licensed under MIT License (See Old/LICENSE file)_
_Forked from [z-classic/z-nomp](https://github.com/z-classic/z-nomp) which is licensed under MIT License (See Old/LICENSE file)_

2
gencfg.sh

@ -29,7 +29,7 @@ rm $ufwdisablefile
if [[ " ${skip[@]} " =~ " ${chain} " ]]; then
pointless=0
else
string=$(printf '%x\n' $(komodo-cli -ac_name=$chain getinfo | jq '.magic'))
string=$(printf '%08x\n' $(komodo-cli -ac_name=$chain getinfo | jq '.magic'))
magic=${string: -8}
magicrev=$(echo ${magic:6:2}${magic:4:2}${magic:2:2}${magic:0:2})

Loading…
Cancel
Save