Repository navigation
Prevent AuxPoW signalling in permissionless GBT - #22
Conversation
d27e03f to
cddb2d0
Compare
PR ReviewFindingsNo blocking source-level findings from this review pass. CI note: Full Validation is currently red only because the Consensus Impact
This changes regtest/debug mining template construction and the Review ScopeReviewed PR #22 at commit Issue FitThe PR matches #18’s requested sanitize option. The miner path clears only BIP9-shaped AuxPoW signalling via qbit-Specific ChecksChecked AuxPoW/mining version layout, chain-id clearing, AuxPoW flag clearing, version rolling mask stability, GBT response behavior, and the separate Validation ReviewedAuthor-listed validation covers Docker lint, build, unit suites, functional suites, Residual RiskI did not independently reproduce the author’s manual |
* Accept legacy AuxPoW RPC payloads (#23) * Prevent AuxPoW signalling in permissionless GBT (#22) * wallet: defer P2MR getnewaddress keypool refill (#13) * wallet: defer P2MR getnewaddress keypool refill * wallet: bound internal P2MR keypool refill * wallet: align P2MR top-up lock ordering * wallet: schedule raw change P2MR refills * wallet: report paused P2MR refills as failed * wallet: log inline P2MR refill failures * ci: fix BuildKit helper lint * Document AuxPoW commitment order fields (#35) * Restrict explicit wallet output types on P2MR-only chains (#25) * Restrict explicit wallet output types * test: run BECH32 wallet suites on unrestricted regtest * fuzz: run wallet transaction target on unrestricted regtest * Fix BuildKit helper lint * Report missing wallet output managers accurately * Allow managerless wallets with default output options * test: add independent P2MR and CTV script vectors (#29) * Add independent P2MR PQC witness vector tests (#30) * test: add independent P2MR PQC witness vector * test: verify P2MR wrong-domain vector signature * Fix AuxPoW legacy payload disambiguation * wallet: avoid MarkUnused P2MR full top-up (#31) * wallet: avoid MarkUnused P2MR full top-up * wallet: avoid MarkUnused lock inversion * wallet: preserve P2MR recovery lookahead * Split P2MR wallet unit tests (#52) * Remove unused P2MR wallet test import (#58) * Shard P2MR wallet unit tests (#60) * Add independent CHECKDATASIGPQC vector tests (#38) * test: add P2MR data-hash proof fixtures (#43) * test: add independent P2MR commitment vectors (#47) * Reject invalid raw funding outputs (#37) * Validate witness-pruned assumevalid before wipe (#59) * Add independent CHECKDATASIGADDPQC vector tests (#42) * qt: recommend wallet encryption by default (#62) * Verify libbitcoinpqc tagged subtree imports (#41) * ci: verify libbitcoinpqc tagged subtree imports * ci: handle peeled libbitcoinpqc tag refs * ci: peel libbitcoinpqc tag objects before compare * ci: pass auth to libbitcoinpqc verifier * ci: pin libbitcoinpqc verifier inputs * ci: verify libbitcoinpqc import tree * Add P2MR PQC annex sighash vectors (#54) * Add P2MR PQC annex sighash vectors * Guard annex mutation vector test * Add P2MR data signature support to Qt Sign/Verify (#63) * qt: add P2MR data signature dialog * qt: support text data in P2MR signatures * qt: align P2MR proof verification with RPC * test: add P2MR CHECKSIGPQC sighash vectors (#55) * Add rawmr future-leaf coverage (#64) * test: cover P2MR SIGHASH_SINGLE missing outputs (#57) * test: add P2MR PQC codeseparator vectors (#56) * Fix PQC data-hash counter accounting (#46) * Fix PQC data-hash counter accounting * Fix PQC data-hash leaf error priority * Report final PQC slot failures as exhausted * doc: add v0.1.2-testnet4 release notes * build: bump version to v0.1.2-testnet4
Summary
-blockversionoverrides that set the AuxPoW flag.getblocktemplateresponses canonical withchain_id=0,auxpow=false, and low versionbits preserved.-blockversion=0x20000100while preserving benign BIP9 override behavior.Root Cause
Permissionless block templates can be built without an AuxPoW payload, but a regtest
-blockversionoverride could set an AuxPoW-signalling BIP9-shaped version.getblocktemplatethen exposed a version that normalsubmitblockor proposal flow could not decode without an AuxPoW payload.Validation
docker run --rm ... bitcoin-lintercmake --build build --target qbitd qbit-cli test_qbit -j4ulimit -n 1024; build/bin/test_qbit --run_test=blockversion_testsulimit -n 1024; build/bin/test_qbit --run_test=cadence_testsulimit -n 1024; build/bin/test_qbit --run_test=testnet4_miner_testsulimit -n 1024; build/test/functional/test_runner.py mining_version_field.py feature_cadence_activation.py mining_basic.pyulimit -n 1024; build/test/functional/test_runner.py feature_auxpow.py0x20000000, reconstructedcreateauxblockreturned AuxPoW version0x2f58c100, andsubmitauxblockreturnednull.Fixes #18
Note
Medium Risk
Touches consensus-adjacent mining RPC and template version semantics; behavior change is narrow but affects how miners interpret GBT
versionand regtest overrides.Overview
Permissionless getblocktemplate and regtest block assembly no longer expose block versions that signal AuxPoW or carry a non-zero chain ID. BIP9-shaped template versions are always canonicalized to
chain_id=0andauxpow=falsewhile keeping the low deployment bits; regtest-blockversionoverrides that set the AuxPoW flag get the same sanitization in the miner. AuxPoW mining stays oncreateauxblock/submitauxblock, which set AuxPoW versions explicitly.Functional coverage was added for benign BIP9
-blockversionoverrides (version rolling preserved) and for0x20000100-style overrides (sanitized to a non-AuxPoW BIP9 version).Reviewed by Cursor Bugbot for commit cddb2d0. Bugbot is set up for automated code reviews on this repo. Configure here.