Script to put in the coinbase transaction. The default is an anyone‐can‐spend dummy.

Synopsis

Declared in <node/mining_types.h>

CScript coinbase_output_script = {CScript() << OP_TRUE};

Description

Should only be used for tests, when the default doesn't suffice.

Note that higher level code like the getblocktemplate RPC may omit the coinbase transaction entirely. It's instead constructed by pool software using fields like coinbasevalue, coinbaseaux and default_witness_commitment. This software typically also controls the payout outputs, even for solo mining.

The size and sigops are not checked against coinbase_max_additional_weight and coinbase_output_max_additional_sigops.

Created with MrDocs