You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wire BCH testnet4 into the c2pool-bch --pool entrypoint so the embedded
daemon selects testnet4 consensus params instead of falling back to
testnet3. Prior: run_pool had no testnet4 branch, so it emitted testnet3
magic f4e5f3f4 + testnet3 genesis; BCHN EOF-dropped the peer right after
connect and HeaderChain stuck at h0.
- config_coin.hpp: m_testnet4 flag (testnet-class for ABLA/ASERT).
- embedded_daemon.hpp: select BCHChainParams::testnet4() (own genesis
000000001dd4.., ASERT anchor 16844) when m_testnet4.
- main_bch.cpp: --testnet4 arg (port 28333); bch_magic_bytes() emits
e2b7daaf (CTestNet4Params, verified vs bchn29 rodata); run_pool threads
testnet4 through magic / params / banner label.
testnet4() + asert_testnet4() consensus constants already in master; this
is CLI + selector wiring only. Behavioural proof: --pool --testnet4 vs a
testnet4 BCHN substrate handshakes off h0 (start_height=312925, BCHN
29.0.0), EOF-drop gone, HeaderChain advances past h0. No p2pool-merged-v36
surface change (subsidy / payout / version-gate untouched) -> surface-for-tap.
Per-coin isolation intact: only src/impl/bch/ plus the c2pool-bch-exclusive
main_bch.cpp entrypoint; no src/core / bitcoin_family / peer-coin hunks.
Cosmetic follow-up (tracked, non-consensus): leveldb path + BCHWorkSource
still label bitcoincash_testnet for testnet4; magic/genesis/P2P path proven
correct by sync off the real testnet4 chain.
0 commit comments