Skip to content

btc(nmc PR-1): link nmc_coin into c2pool-btc target - #692

Merged
frstrtr merged 1 commit into
masterfrom
btc/nmc-coin-link-c2pool-btc
Jul 13, 2026
Merged

btc(nmc PR-1): link nmc_coin into c2pool-btc target#692
frstrtr merged 1 commit into
masterfrom
btc/nmc-coin-link-c2pool-btc

Conversation

@frstrtr

@frstrtr frstrtr commented Jul 13, 2026

Copy link
Copy Markdown
Owner

PR-1 of 3 wiring embedded Namecoin merged-mining into the packaged c2pool-btc binary (the per-coin release.yml artifact, main_btc.cpp), so a shipped BTC v0.2.x package can carry NMC embedded MM. Today NMC host activation lives only in main_ltc.cpp (the multi-net binary), which release.yml does not package as the BTC artifact.

This slice (link-only, no behavior change)

Adds nmc_coin to the c2pool-btc target_link_libraries block in src/c2pool/CMakeLists.txt (1 line). Supplies the nmc::coin out-of-line Transaction/MutableTransaction ctors that the aux-commitment path will call. No call sites yet, so the linker drops the unreferenced objects — the value here is proving nmc_coin is link-compatible with c2pool-btc's toolchain/flags (no ODR/symbol conflict).

Verify

Clean from-scratch build on workstation: [100%] Built target c2pool-btc, exit 0, no errors. Binary 8.1 MB.

Follows (separate slices, each off master)

  • PR-2 (substantive): host activation in main_btc — instantiate MM manager + NMC HeaderChain/Mempool/params + feed aux commitment into the coinbase build (replaces empty merged_addrs), mirroring main_ltc + the doge/coin pattern.
  • PR-3: aux-submit broadcaster (submitauxblock + fallback) mirroring the BTC won-block dual-path submit seam.
  • CI: NMC gate for the BTC package (link-presence + headless startup smoke).

Base off master per slice rule. No self-merge — for integrator review + operator tap.

Wire the embedded NMC coin object library into the packaged per-coin
c2pool-btc binary so the shipped BTC package can carry Namecoin embedded
merged-mining. Link-only slice: supplies nmc::coin Transaction ctors; the
MM-manager host activation + aux commitment into the coinbase build land
in the following slice on main_btc. No behavior change on its own.
@frstrtr
frstrtr merged commit 99ca772 into master Jul 13, 2026
26 checks passed
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.

1 participant