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

#include <types.h>

Public Attributes

MillisecondsDouble timeout {MillisecondsDouble::max()}
 How long to wait before returning nullptr instead of a new template. More...
 
CAmount fee_threshold {MAX_MONEY}
 The wait method will not return a new template unless it has fees at least fee_threshold sats higher than the current template, or unless the chain tip changes and the previous template is no longer valid. More...
 

Detailed Description

Definition at line 67 of file types.h.

Member Data Documentation

◆ fee_threshold

CAmount node::BlockWaitOptions::fee_threshold {MAX_MONEY}

The wait method will not return a new template unless it has fees at least fee_threshold sats higher than the current template, or unless the chain tip changes and the previous template is no longer valid.

A caller may not be interested in templates with higher fees, and determining whether fee_threshold is reached is also expensive. So as an optimization, when fee_threshold is set to MAX_MONEY (default), the implementation is able to be much more efficient, skipping expensive checks and only returning new templates when the chain tip changes.

Definition at line 85 of file types.h.

◆ timeout

MillisecondsDouble node::BlockWaitOptions::timeout {MillisecondsDouble::max()}

How long to wait before returning nullptr instead of a new template.

Default is to wait forever.

Definition at line 72 of file types.h.


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