Bitcoin Core 28.99.0
P2P Digital Currency
Public Attributes | List of all members
node::BlockCreateOptions Struct Reference

#include <types.h>

Inheritance diagram for node::BlockCreateOptions:
[legend]
Collaboration diagram for node::BlockCreateOptions:
[legend]

Public Attributes

bool use_mempool {true}
 Set false to omit mempool transactions. More...
 
size_t coinbase_max_additional_weight {4000}
 The maximum additional weight which the pool will add to the coinbase scriptSig, witness and outputs. More...
 
size_t coinbase_output_max_additional_sigops {400}
 The maximum additional sigops which the pool will add in coinbase transaction outputs. More...
 
CScript coinbase_output_script {CScript() << OP_TRUE}
 Script to put in the coinbase transaction. More...
 

Detailed Description

Definition at line 31 of file types.h.

Member Data Documentation

◆ coinbase_max_additional_weight

size_t node::BlockCreateOptions::coinbase_max_additional_weight {4000}

The maximum additional weight which the pool will add to the coinbase scriptSig, witness and outputs.

This must include any additional weight needed for larger CompactSize encoded lengths.

Definition at line 41 of file types.h.

◆ coinbase_output_max_additional_sigops

size_t node::BlockCreateOptions::coinbase_output_max_additional_sigops {400}

The maximum additional sigops which the pool will add in coinbase transaction outputs.

Definition at line 46 of file types.h.

◆ coinbase_output_script

CScript node::BlockCreateOptions::coinbase_output_script {CScript() << OP_TRUE}

Script to put in the coinbase transaction.

The default is an anyone-can-spend dummy.

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.

Definition at line 62 of file types.h.

◆ use_mempool

bool node::BlockCreateOptions::use_mempool {true}

Set false to omit mempool transactions.

Definition at line 35 of file types.h.


The documentation for this struct was generated from the following file: