Commit b202a40
committed
Fix coinbase output extraction to support all outputs, not just witness commitment
The previous implementation only extracted the witness commitment output,
ignoring all other coinbase outputs (such as merge mining commitments).
This fix extracts ALL coinbase outputs from the template, enabling proper
support for merge mining and other multi-output scenarios.
Verified with end-to-end testing:
- Bitcoin Core: Creates 4 outputs (payout + 2 OP_RETURNs + witness)
- sv2-tp: Now extracts and serializes all 4 outputs
- SRI Pool: Receives all 4 outputs correctly
Fixes issue #181 parent 1adcfcf commit b202a40
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments