[#node-BlockWaitOptions-fee_threshold]
= xref:node.adoc[node]::xref:node/BlockWaitOptions.adoc[BlockWaitOptions]::fee&lowbar;threshold
:relfileprefix: ../../
:mrdocs:

The wait method will not return a new template unless it has fees at least fee&lowbar;threshold sats higher than the current template, or unless the chain tip changes and the previous template is no longer valid&period;

== Synopsis

Declared in `&lt;node&sol;mining&lowbar;types&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CAmount.adoc[CAmount] fee&lowbar;threshold = &lcub;MAX&lowbar;MONEY&rcub;;
----

== Description

A caller may not be interested in templates with higher fees, and determining whether fee&lowbar;threshold is reached is also expensive&period; So as an optimization, when fee&lowbar;threshold is set to MAX&lowbar;MONEY (default), the implementation is able to be much more efficient, skipping expensive checks and only returning new templates when the chain tip changes&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
