btc: --regtest CLI substrate for PE-2e won-block soak (additive) - #275
Closed
frstrtr wants to merge 1 commit into
Closed
btc: --regtest CLI substrate for PE-2e won-block soak (additive)#275frstrtr wants to merge 1 commit into
frstrtr wants to merge 1 commit into
Conversation
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).
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). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
No mainnet/testnet/testnet4 path altered. Parent-param SELECTION wiring is a follow-up slice (routing question open to integrator). NOT self-merged.