Block template creation options. These override node defaults, but can't exceed node limits (e.g. block_reserved_weight can't exceed max block weight).
Synopsis
Declared in <node/mining_types.h>
struct BlockCreateOptions;
Data Members
Name |
Description |
Maximum block weight, defaults to ‐maxblockweight |
|
Minimum fee rate for transactions to be included. Providing a value overrides the ‐blockmintxfee startup setting. |
|
The default reserved weight for the fixed‐size block header, transaction count and coinbase transaction. Minimum: 2000 weight units (MINIMUM_BLOCK_RESERVED_WEIGHT). |
|
|
The maximum additional sigops which the pool will add in coinbase transaction outputs. |
Script to put in the coinbase transaction. The default is an anyone‐can‐spend dummy. |
|
Whether to log the fee rate of each transaction when it is added to the block template. Providing a value overrides the ‐printpriority startup setting. |
|
Whether to call TestBlockValidity() at the end of CreateNewBlock(). Should only be disabled for tests / benchmarks. |
|
Set false to omit mempool transactions |
Non-Member Functions
Name |
Description |
Check option values for validity. Returns an error for invalid values. |
|
Replace null optional values with their hardcoded defaults. |
|
Merge two BlockCreateOptions structs, replacing null values in |
|
Read the mining options set in |
Created with MrDocs