4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

kotoのプールを作成

Last updated at Posted at 2017-12-26

#はじめに

kotoのプールの作成方法です。

kotodはインストールされているとして

https://github.com/yoshuki43/k-nomp
https://github.com/kpooljp/k-nomp

#事前準備

apt-get install redis-server
apt-get install build-essential libsodium-dev

apt-get install -y nodejs npm
npm cache clean
npm install n -g
n stable
n v9

ln -sf /usr/local/bin/node /usr/bin/node
apt-get purge -y nodejs npm

#k-nompのインストール

cd /usr/local
git clone https://github.com/kpooljp/k-nomp
cd k-nomp/
npm update

npm install bignum

npm install

cd pool_configs/
cp koto_example.json koto.json

  • address = koto-cli getnewaddress
  • zAddress = koto-cli z_getnewaddress
  • taddress = koto-cli getnewaddress
  • daemon = koto.conf のユーザ名とパスワード
koto.json

適宜修正

cd ..
cp config_example.json config.json

config.json

適宜修正

#プールの運営

crontab

*/10 * * * * /root/k-nomp.sh >> /var/log/k-nomp-restart.log 2>&1
payoutが止まった時に自動再起動します

スタート

k-nomp.sh start

ストップ

k-nomp.sh stop

#TODO

残高の確認
koto-cli z_gettotalbalance

マイニングしたコインをプライベートアドレスへ移動
koto-cli z_shieldcoinbase "*" "zアドレス"

プライベートアドレスからtアドレスへ移動
z_sendmany "zアドレス" '[{"address": "tアドレス" ,"amount": 180}]'

通常の送金
koto-cli sendmany "" "{"tアドレス":100}"

公開しているプール
http://jp.kpool.jp/

MPOS版
http://koto.jpool.jp/

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?