Skip to content

Preserve explicit empty CKPool coinbase signatures - #20

Merged
kiwidream merged 2 commits into
mainfrom
fix/preserve-empty-ckpool-btcsig
Jul 13, 2026
Merged

kiwidream merged 2 commits into
mainfrom
fix/preserve-empty-ckpool-btcsig

Conversation

@kiwidream

@kiwidream kiwidream commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • preserve an explicitly empty CKPOOL_BTCSIG through Compose interpolation
  • keep the existing fallback when the variable is absent
  • preserve the empty value in start-ckpool.sh and render "btcsig": ""
  • add regression coverage for empty and default behavior

Verification

  • python3 -m unittest discover -s tests -p "test*.py" (480 tests)
  • bash -n docker/ckpool/start-ckpool.sh
  • Docker Compose config checks for both empty and absent values

Context

This enables qbit-tools to configure permissionless mainnet ckpool without an optional coinbase signature while retaining the existing default for other deployments.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Note

Low Risk
Small configuration and defaulting change for an optional coinbase string; behavior is covered by unit tests and does not touch auth or payout logic.

Overview
CKPOOL_BTCSIG can now be set to an empty string so ckpool omits the optional coinbase signature (e.g. permissionless mainnet pools via qbit-tools), while deployments that leave the variable unset still get /qbit-mining-bootstrap/.

Compose (ckpool and ckpool-real) switches from ${CKPOOL_BTCSIG:-…} to ${CKPOOL_BTCSIG-/qbit-mining-bootstrap/} so interpolation treats “unset” vs “explicitly empty” differently. start-ckpool.sh uses the same idea with : "${CKPOOL_BTCSIG=/qbit-mining-bootstrap/}", which still renders "btcsig": "" in the generated config when empty. .env.example documents that an explicit empty value omits the signature.

Regression tests cover empty btcsig in config output, defaulting when a parent process has CKPOOL_BTCSIG="" but the test harness does not pass it, and the compose interpolation form.

Reviewed by Cursor Bugbot for commit 8911253. Bugbot is set up for automated code reviews on this repo. Configure here.

@kiwidream
kiwidream requested a review from djh58 July 13, 2026 20:42

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8ad488c. Configure here.

Comment thread tests/test_ckpool_startup.py Resolved
@kiwidream
kiwidream merged commit 27dd834 into main Jul 13, 2026
5 checks passed
@djh58 djh58 mentioned this pull request Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants