4

Also, would that block's Coinbase contain some kind of empty witness commitment?

2

BIP141 only requires a commitment to the witness tree to be present when there is at least one segwit transaction (= a transaction that spends a witness output) in the block.

This means that old miners in theory can keep working after segwit activates, as long as they don't include segwit transactions (easy, as they are nonstandard to them) and don't build on top of invalid blocks (harder, as it requires an updated full node).

  • I'm playing with this in regtest mode, but I'm seeing a SW commitment in an empty block. getblock: pastebin.com/eDeXGHEx and gettransaction of the coinbase tx: pastebin.com/3DxSFArc The block has an extra 36 bytes (size - stripped size) and the coinbase tx has an OP_RETURN aa21a9ed... Is it counting the coinbase tx itself as a SW tx? Making the whole block SW? – pinhead Mar 24 '17 at 17:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.