Commit 9eb9538
committed
dgb: embed-at-mint MM commitment into coinbase scriptSig (phase DB)
Wire the AuxPoW merged-mining commitment into the per-connection coinbase
assembler so a won DGB block, built as the DOGE merged-mining parent
(-DAUX_DOGE=ON), carries the 44-byte MM tag (magic fabe6d6d || aux_root32 BE
|| size4 LE || nonce4 LE) the aux verifier decodes.
ConnCoinbasePplnsInputs gains an optional aux_mm_commitment carrying the
pre-built tag; build_connection_coinbase_from_pplns appends it to the coinbase
scriptSig when present. DEFAULT nullopt leaves the scriptSig -- and therefore
the whole gentx -- BYTE-IDENTICAL to the standalone-parent build: the no-op is
structural, so the default V36 DGB build cannot regress. The producer
(main_dgb seam) only ever populates the field under #ifdef AUX_DOGE; sourcing a
LIVE aux merkle root is the gated DC routing slice and is not wired here.
Per the integrator core=SSOT adjudication, the commitment blob is consumed as a
read-only product of the canonical builder c2pool::merged::build_auxpow_commitment
(shared A-level merged_mining.cpp / coinbase_builder.hpp). This slice carries no
DGB-local layout logic and makes no edit to the 44-byte layout or the shared
DOGE-aux seam; it is independent of #475 (the SSOT KAT-pin) -- both pin to the
same core builder. Fenced to src/impl/dgb/; zero ltc/doge tree edits.
KAT (connection_coinbase_test, runs in both default and AUX_DOGE arms):
E1 NulloptIsByteIdentical -- nullopt == no-aux gentx, txid-identical
E2 AppendsMmTagToScriptSig -- gentx grows by EXACTLY 44 bytes, tag bytes
match the core SSOT output, scriptSig == baseline || tag
10/10 green both arms (default + -DAUX_DOGE=ON).1 parent d4b57d8 commit 9eb9538
2 files changed
Lines changed: 88 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
136 | 147 | | |
137 | 148 | | |
138 | 149 | | |
| |||
142 | 153 | | |
143 | 154 | | |
144 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
145 | 163 | | |
146 | 164 | | |
147 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
210 | 280 | | |
211 | 281 | | |
212 | 282 | | |
| |||
0 commit comments