dgb: Stage 4c — wire get_current_work_template coinbasevalue through #207 SSOT - #211
Merged
Merged
Conversation
…Stage 4c) get_current_work_template() now emits the next-block height and its coinbasevalue instead of an empty object. The coinbasevalue is derived through the #207 embedded SSOT (coinbase_value -> resolve_coinbase_value -> subsidy_func) keyed on next_block_height() (#209, == tip.height + 1; == base_height for an empty chain). Embedded path: no external-daemon GBT value is plumbed in yet and mempool-fee aggregation is unwired, so total_fees = 0; a present GBT coinbasevalue stays authoritative and fees add on top of subsidy in later slices without changing this SSOT call. The remaining GBT template fields (previousblockhash, bits, version, curtime, mintime, transactions[]) and the build_connection_coinbase gentx assembly land in following Stage 4c/4d slices. Test: +WorkTemplateEmitsHeightAndCoinbaseValueViaSsot pins height + coinbasevalue to the p2pool-dgb-scrypt oracle subsidy at the phase3 era boundary; existing stub-default assertion relaxed. dgb_work_source_test 14/14.
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.
Stage 4c (per integrator FYI on #209).
get_current_work_template()no longer returns an empty object: it now emits the next-block height and its coinbasevalue, the latter derived through the #207 embedded SSOT (coinbase_value -> resolve_coinbase_value -> subsidy_func) keyed onnext_block_height()(#209,== tip.height + 1;== base_heightfor an empty chain).Scope (deliberately minimal, fenced to DGB)
total_fees = 0. A present GBT coinbasevalue stays authoritative and fees add on top of subsidy in later slices without changing this SSOT call.previousblockhash,bits,version,curtime,mintime,transactions[]) and thebuild_connection_coinbasegentx assembly (needs ShareTracker ref_hash + PPLNS payout map).Test
+WorkTemplateEmitsHeightAndCoinbaseValueViaSsotpinsheight+coinbasevalueto the p2pool-dgb-scrypt oracle subsidy at the phase3 era boundary (400000 -> 2434410000); the prior stub-default assertion is relaxed.dgb_work_source_test14/14 local, build EXIT=0. No new test target -> no build.yml change.HOLD merge — integrator merges with operator push approval.