Skip to content

btc: --regtest CLI substrate for PE-2e won-block soak (additive) - #275

Closed
frstrtr wants to merge 1 commit into
masterfrom
btc/regtest-parent-cli
Closed

btc: --regtest CLI substrate for PE-2e won-block soak (additive)#275
frstrtr wants to merge 1 commit into
masterfrom
btc/regtest-parent-cli

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Additive --regtest CLI substrate so the embedded BTC parent can run a trivial-difficulty regtest target — the in-loop c2pool process the PE-2e won-block soak harness (#251) needs to drive on_block_found deterministically (integrator UID1683).

Files (all strictly additive, fenced):

  • core/settings.hpp: m_regtest{false}
  • c2pool_refactored.cpp: --regtest parse + --help
  • btc/coin/header_chain.hpp: BTCChainParams::regtest() (no_retargeting=true, regtest pow_limit + genesis 0f9188f1.., per ref/bitcoin CRegTestParams)

No mainnet/testnet/testnet4 path altered. Parent-param SELECTION wiring is a follow-up slice (routing question open to integrator). NOT self-merged.

Wire the chain_params.hpp no_retargeting hook to a new --regtest CLI flag
so the embedded BTC parent can run a trivial-difficulty (regtest) target,
letting on_block_found actually fire under a deterministic regtest substrate
(NMC PE-2e won-block soak, per integrator UID1683).

Strictly additive / fenced:
  - core/settings.hpp:  new m_regtest{false} field
  - c2pool_refactored.cpp:  --regtest arg parse + --help line
  - btc/coin/header_chain.hpp:  new BTCChainParams::regtest() factory
    (no_retargeting=true, allow_min_difficulty=true, regtest pow_limit +
     genesis 0f9188f1.., per ref/bitcoin CRegTestParams)

No existing mainnet/testnet/testnet4 path is altered; m_regtest defaults
false and regtest() is selected only under --regtest. Parent-param SELECTION
wiring is the follow-up slice (routing question raised to integrator).
@frstrtr

frstrtr commented Jun 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #276 (merged @c525949b7): integrator chose the test-only forced-won-share reconstruct seam over a --regtest BTC-parent CLI. Closing the CLI-substrate path; branch preserved (no --delete-branch).

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