Commit e2714b9
committed
dgb: wire get_current_work_template coinbasevalue through #207 SSOT (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.1 parent bcfd21c commit e2714b9
2 files changed
Lines changed: 43 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
156 | 171 | | |
157 | 172 | | |
158 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
138 | 141 | | |
139 | | - | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| |||
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
177 | 199 | | |
178 | 200 | | |
179 | 201 | | |
| |||
0 commit comments