What is the maximum number of bytes the coinbase scriptSig (coinbaseaux) can hold?

3

Since the scriptSig of the coinbase transaction of a block can contain arbitrary data, what is the maximum number of bytes it can contain? I've seen various mentions of a limit around 100 bytes, but can't find that defined anywhere.

JBaczuk

Posted 2018-11-09T21:42:59.937

Reputation: 6 172

Answers

4

The maximum is 100 bytes and is checked and defined here: https://github.com/bitcoin/bitcoin/blob/master/src/consensus/tx_verify.cpp#L195

Andrew Chow

Posted 2018-11-09T21:42:59.937

Reputation: 40 910