mirror of
https://github.com/mempool/mempool.git
synced 2025-04-23 23:10:45 +02:00
[Fix] CKSolo Install + GUI
This commit is contained in:
parent
eb4d2f5732
commit
140bf890ba
@ -43,8 +43,8 @@ CLN_INSTALL=ON
|
||||
# install UNFURL
|
||||
UNFURL_INSTALL=ON
|
||||
|
||||
# install CKPOOL
|
||||
CKPOOL_MAINNET_INSTALL=ON
|
||||
# install CKPool
|
||||
CKPOOL_INSTALL=ON
|
||||
|
||||
# configure 4 network instances
|
||||
BITCOIN_MAINNET_ENABLE=ON
|
||||
@ -59,11 +59,6 @@ BISQ_MAINNET_ENABLE=ON
|
||||
ELEMENTS_LIQUID_ENABLE=ON
|
||||
ELEMENTS_LIQUIDTESTNET_ENABLE=ON
|
||||
|
||||
# configure 3 CKPool instances
|
||||
BITCOIN_MAINNET_CKPOOL=ON
|
||||
BITCOIN_TESTNET_CKPOOL=ON
|
||||
BITCOIN_TESTNET4_CKPOOL=ON
|
||||
|
||||
# enable lightmode and disable compaction to fit on 1TB SSD drive
|
||||
BITCOIN_ELECTRS_INSTALL=ON
|
||||
BITCOIN_ELECTRS_LIGHT_MODE=ON
|
||||
@ -392,7 +387,7 @@ BISQ_REPO_BRANCH=master
|
||||
BISQ_LATEST_RELEASE=master
|
||||
echo -n '.'
|
||||
|
||||
CKPOOL_URL=https://github.com/mempool/ckpool
|
||||
CKPOOL_REPO_URL=https://github.com/mempool/ckpool
|
||||
CKPOOL_REPO_NAME=ckpool
|
||||
CKPOOL_REPO_BRANCH=master
|
||||
CKPOOL_LATEST_RELEASE=$(curl -s https://api.github.com/repos/mempool/ckpool/releases/latest|grep tag_name|head -1|cut -d '"' -f4)
|
||||
@ -434,7 +429,7 @@ LIQUIDTESTNET_ASSET_REGISTRY_DB_NAME=asset_registry_testnet_db
|
||||
# packages needed for mempool ecosystem
|
||||
DEBIAN_PKG=()
|
||||
DEBIAN_PKG+=(zsh vim curl screen openssl python3 dialog cron)
|
||||
DEBIAN_PKG+=(build-essential git git-lfs clang cmake jq)
|
||||
DEBIAN_PKG+=(build-essential git clang cmake jq)
|
||||
DEBIAN_PKG+=(autotools-dev autoconf automake pkg-config bsdmainutils)
|
||||
DEBIAN_PKG+=(libevent-dev libdb-dev libssl-dev libtool autotools-dev)
|
||||
DEBIAN_PKG+=(libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev)
|
||||
@ -447,11 +442,10 @@ DEBIAN_UNFURL_PKG+=(libxdamage-dev libxrandr-dev libgbm-dev libpango1.0-dev liba
|
||||
|
||||
# packages needed for mempool ecosystem
|
||||
FREEBSD_PKG=()
|
||||
FREEBSD_PKG+=(zsh sudo git git-lfs screen curl wget calc neovim)
|
||||
FREEBSD_PKG+=(zsh sudo git screen curl wget calc neovim)
|
||||
FREEBSD_PKG+=(openssh-portable py311-pip rust llvm17 jq base64 libzmq4)
|
||||
FREEBSD_PKG+=(boost-libs autoconf automake gmake gcc13 libevent libtool pkgconf)
|
||||
FREEBSD_PKG+=(nginx rsync py311-certbot-nginx mariadb1011-server)
|
||||
FREEBSD_PKG+=(geoipupdate redis)
|
||||
FREEBSD_PKG+=(libepoll-shim)
|
||||
|
||||
FREEBSD_UNFURL_PKG=()
|
||||
@ -856,6 +850,7 @@ returncode=0
|
||||
|
||||
$CUT >$input <<-EOF
|
||||
Tor:Enable Tor v3 HS Onion:ON
|
||||
KPool:Enable CKPool Stratum Interface:ON
|
||||
Mainnet:Enable Bitcoin Mainnet:ON
|
||||
Mainnet-Minfee:Enable Bitcoin Mainnet Minfee:ON
|
||||
LN-Mainnet:Enable Bitcoin Mainnet Lightning:ON
|
||||
@ -894,6 +889,12 @@ else
|
||||
TOR_INSTALL=OFF
|
||||
fi
|
||||
|
||||
if grep CKPool $tempfile >/dev/null 2>&1;then
|
||||
CKPOOL_INSTALL=ON
|
||||
else
|
||||
CKPOOL_INSTALL=OFF
|
||||
fi
|
||||
|
||||
if grep Mainnet $tempfile >/dev/null 2>&1;then
|
||||
BITCOIN_MAINNET_ENABLE=ON
|
||||
else
|
||||
@ -1304,7 +1305,7 @@ if [ "${CKPOOL_INSTALL}" = ON ]; then
|
||||
|
||||
echo "[*] Building CKPool from source repo"
|
||||
osSudo "${CKPOOL_USER}" sh -c "cd ${CKPOOL_REPO_NAME} && ./autogen.sh --quiet"
|
||||
osSudo "${CKPOOL_USER}" sh -c "cd ${CKPOOL_REPO_NAME} && ./configure CFLAGS='-O3 -march=native -flto -Wall -I/usr/local/include/libepoll-shim' LDFLAGS='-L/usr/local/lib -lepoll-shim -lpthread'"
|
||||
osSudo "${CKPOOL_USER}" sh -c "cd ${CKPOOL_REPO_NAME} && ./configure CFLAGS=\"-g3 -O0 -fno-inline -fno-omit-frame-pointer -fno-eliminate-unused-debug-types -fno-eliminate-unused-debug-symbols -Wall -I/usr/local/include/libepoll-shim\" LDFLAGS=\"-L/usr/local/lib -lepoll-shim -lpthread\""
|
||||
osSudo "${CKPOOL_USER}" sh -c "cd ${CKPOOL_REPO_NAME} && gmake -j${NPROC}"
|
||||
|
||||
echo "[*] Copy CKPool binarary into OS"
|
||||
@ -1312,15 +1313,15 @@ if [ "${CKPOOL_INSTALL}" = ON ]; then
|
||||
|
||||
TEMP_CRON_FILE="tmp_cron"
|
||||
|
||||
if [ "${BITCOIN_MAINNET_CKPOOL}" = ON ]; then
|
||||
if [ "${BITCOIN_MAINNET_ENABLE}" = ON ]; then
|
||||
install_ckpool_cron "mainnet" "Mainnet" "bitcoin" 2333
|
||||
fi
|
||||
|
||||
if [ "${BITCOIN_TESTNET_CKPOOL}" = ON ]; then
|
||||
if [ "${BITCOIN_TESTNET_ENABLE}" = ON ]; then
|
||||
install_ckpool_cron "testnet" "Testnet" "testnet" 2334
|
||||
fi
|
||||
|
||||
if [ "${BITCOIN_TESTNET4_CKPOOL}" = ON ]; then
|
||||
if [ "${BITCOIN_TESTNET4_ENABLE}" = ON ]; then
|
||||
install_ckpool_cron "testnet4" "Testnet4" "testnet4" 2335
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user