Skip to content

bch: bootstrap src/impl/bch skeleton (M2)#61

Merged
frstrtr merged 1 commit into
masterfrom
bch/bootstrap-skeleton
Jun 4, 2026
Merged

bch: bootstrap src/impl/bch skeleton (M2)#61
frstrtr merged 1 commit into
masterfrom
bch/bootstrap-skeleton

Conversation

@frstrtr
Copy link
Copy Markdown
Owner

@frstrtr frstrtr commented Jun 2, 2026

M2: bootstrap src/impl/bch skeleton

Bootstraps the BCH (Bitcoin Cash) V36 coin module skeleton. Implements M2 of the c2pool-bch-embedded-impl-plan (frstrtr/the docs, master d6ee6f0). Companion to dgb #60 / per-coin binary scheme.

Shape

Inert-guard skeleton, matching the dgb #60 precedent exactly:

  • src/impl/bch/CMakeLists.txt: if(COIN_BCH) guard, message(STATUS ...), sub-add_subdirectory/add_library left as commented TODO(M3).
  • Built only under -DCOIN_BCH=ON; emits the c2pool-bch binary at M3.
  • Mirrors src/impl/btc/ layout: coin/ (header_chain, template_builder stubs), daemon/, test/, config_coin.hpp.

Registration / OBJECT-lib convention

Per dgb #60, the active add_library(impl_bch OBJECT ...) and the top-level add_subdirectory(src/impl/bch) registration are the OBJECT-lib convention PR (ci-steward owns), deliberately not raced into the bootstrap. No LINK_GROUP (supersedes the earlier #54 LINK_GROUP approach). This PR therefore configures cleanly as a no-op: the module is present in-tree but not yet wired into the build graph — identical to dgb at #60.

If ci-steward wants the active top-level add_subdirectory + add_library(impl_bch OBJECT) to land in this PR (bch as the convention first-mover rather than waiting on the convention PR), I can amend within a heartbeat — flagging on the task thread.

Scope / safety

  • BCH-specific code only; no src/impl/btc/ or bitcoin_family/ changes.
  • p2pool-merged-v36 compatibility: skeleton-only, no interop surface yet.
  • Headers empty/stubbed; no functional logic at M2.

Diff: 6 files, +64.

Mirror src/impl/btc layout. Stub coin/ + daemon/ + test/ slices.
- config_coin.hpp: CashAddr scaffolding, HogEx out-of-scope note
- coin/header_chain.hpp: ASERT insertion point (BCH-specific slice 1/2)
- coin/template_builder.hpp: CTOR insertion point (slice 2/2), CashTokens note
- CMakeLists: -DCOIN_BCH=ON gate (per-coin binary scheme)
Per impl plan c2pool-bch-embedded-impl-plan.md v36.
@frstrtr frstrtr force-pushed the bch/bootstrap-skeleton branch from d3b346e to 79928c6 Compare June 4, 2026 12:10
@frstrtr frstrtr merged commit 6b8a2ca into master Jun 4, 2026
14 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