Commit cd2fb11
authored
dgb(test): pin LIVE make_coin_params subsidy_func binding (#334)
The era-boundary tests trust kSubsidyFunc, a hand-written duplicate of
params.hpp p.subsidy_func. They pin the schedule math but are blind to a
regression in the actual production wiring: if make_coin_params() shipped
subsidy_func unbound (work source logs subsidy_func=UNSET, embedded
coinbasevalue silently degrades to the external-GBT-only path) or bound it
to the wrong function, every existing test would still pass off its private
copy. Add DgbCoinParams.SubsidyFuncBoundToOracleScheduleInProduction: pull
the real make_coin_params(false).subsidy_func, assert it is bound, and that
it reproduces the oracle schedule at every reward-era boundary.
Fenced test-only (src/impl/dgb/test/), no consensus-value change; extends an
existing CI target so no allowlist/drift-guard change.
Co-authored-by: frstrtr <frstrtr@users.noreply.github.com>1 parent 02180c5 commit cd2fb11
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
463 | 486 | | |
464 | 487 | | |
465 | 488 | | |
| |||
0 commit comments