Enable ckpool LOG_INFO loglevel for share statistics

Sets CKPOOL_LOGLEVEL=6 so ckpool emits per-share Accepted/Rejected
client log lines needed by the stats and difficulty distribution
features.
This commit is contained in:
satoshi
2026-05-18 21:13:20 +03:00
parent cb01a16af8
commit 75024a41c6
+6 -2
View File
@@ -105,6 +105,10 @@ export UPDATE_INTERVAL_S=30
# disabled the second bind is harmless (nothing connects to it). # disabled the second bind is harmless (nothing connects to it).
export TLS_INTERNAL_PORT=3437 export TLS_INTERNAL_PORT=3437
# CKPool loglevel: 6 = LOG_INFO, required for share-level logging
# (Accepted/Rejected client lines) used by the stats feature.
export CKPOOL_LOGLEVEL=6
mkdir -p "${LOGDIR}" "${SOCKET_DIR}" /etc/ckpool mkdir -p "${LOGDIR}" "${SOCKET_DIR}" /etc/ckpool
# Render ckpool.conf using the same sed approach as the upstream # Render ckpool.conf using the same sed approach as the upstream
@@ -132,8 +136,8 @@ sed \
-e "s|\${ZMQ_BLOCK}|${ZMQ_BLOCK}|g" \ -e "s|\${ZMQ_BLOCK}|${ZMQ_BLOCK}|g" \
"${TEMPLATE}" > "${CONF}" "${TEMPLATE}" > "${CONF}"
echo "kamado-entrypoint: starting ckpool (solo, ${BITCOIND_VARIANT}) on port ${STRATUM_PORT}" echo "kamado-entrypoint: starting ckpool (solo, ${BITCOIND_VARIANT}) on port ${STRATUM_PORT}, loglevel ${CKPOOL_LOGLEVEL}"
/usr/local/bin/ckpool --btcsolo --config "${CONF}" --sockdir "${SOCKET_DIR}" --log-shares & /usr/local/bin/ckpool --btcsolo --config "${CONF}" --sockdir "${SOCKET_DIR}" --log-shares -l "${CKPOOL_LOGLEVEL}" &
CKPOOL_PID=$! CKPOOL_PID=$!
# DB_PATH must live on the persisted main volume; the default # DB_PATH must live on the persisted main volume; the default