Your own bitcoin solo pool

Описание к видео Your own bitcoin solo pool

Have you ever wanted to setup your own private #Bitcoin solo pool at home? You are in luck! This video will walk you through how to setup ckpool (by Con Kolivas) on Ubuntu 22.04

You can mine to this private solo Bitcoin pool using equipment like a Bitmain Antminer S19 or a GekkoScience Compac F or NewPac USB Bitcoin miner.

= Setup a Bitcoin full node using this guide
   • How-to: Bitcoin Full Node on Ubuntu 2...  

= Prep OS and install mandatory components
sudo su
apt update
apt upgrade
apt install build-essential yasm autoconf automake libtool libzmq3-dev pkgconf

= Create an account to run ckpool in isolation from the rest of the system
useradd -g btc -m -s /bin/bash ckpool

= Build ckpool
su - ckpool
git clone https://bitbucket.org/ckolivas/ckpool...
cd solobtc
./autogen.sh
./configure
make

= Enable RPC in bitcoin core snap
exit
su -- btc
cd

== Add these lines
vi ./snap/bitcoin-core/common/.bitcoin/bitcoin.conf
server=1
rpcuser=rpc_admin
rpcpassword=random_password
zmqpubhashblock=tcp://127.0.0.1:28332

= Restart Bitcoin Core
exit
systemctl restart bitcoind
systemctl status bitcoind

= Configure ckpool
su -- ckpool
cd ~/solobtc
mv ckpool.conf ckpool.original
vi ckpool.conf
{
"btcd" : [
{
"url" : "127.0.0.1:8332",
"auth" : "rpc_admin",
"pass" : "random_password",
"notify" : true
}
],
"btcsig" : "/anything you want to appear in the blocks you mine/",
"donation" : 0.5
}


Test
cd ..
src/ckpool -B

= Now setup to run as a daemon:
exit

== Create systemd unit
sudo vi /etc/systemd/system/ckpool.service
[Unit]
Description=ckpool solo Bitcoin pool
After=multi-user.target
Requires=bitcoind.service

[Service]
User=ckpool
Group=btc
Type=simple
Restart=always
WorkingDirectory=/home/ckpool/solobtc
ExecStart=/home/ckpool/solobtc/src/ckpool -B

[Install]
WantedBy=multi-user.target


== Enable and start service
systemctl daemon-reload
systemctl enable ckpool.service
systemctl start ckpool.service
systemctl status ckpool.service
journalctl -xeu ckpool.service



= Setup log rotation of debug log
sudo vi /etc/logrotate.d/ckpool
/home/ckpool/solobtc/logs/ckpool.log
{
su ckpool btc
missingok
notifempty
compress
delaycompress
sharedscripts
copytruncate
}

== Check logrotation service is correctly configured
sudo systemctl restart logrotate.service
sudo systemctl status logrotate.service

Комментарии

Информация по комментариям в разработке