Skip to content

Commit 1f3cc6f

Browse files
committed
partially add suggestions from Sjors review
#153 (comment)
1 parent 4ddd08e commit 1f3cc6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

03-Protocol-Overview.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ This ensures that an attacker will not be able to redirect hashrate to an arbitr
293293

294294
This deserves some consideration in the Stratum V2 protocol design, mainly because this affects how the Coinbase transaction is serialized across different messages.
295295

296+
For a block that contains any SegWit transactions (in practice almost any non-empty block), the Coinbase transaction MUST have a witness as well as an `OP_RETURN` output carrying the witness commitment. For an empty block, the Coinbase transaction MAY have a witness and the `OP_RETURN` output with the witness commitment anyway.
297+
298+
The `OP_RETURN` output with the witness commitment is provided by Sv2 Template Providers in the `coinbase_tx_outputs` field of `NewTemplate` message.
299+
296300
On a serialized SegWit transaction, the BIP141 fields are:
297301
- marker
298302
- flag

0 commit comments

Comments
 (0)