[#wallet-DEFAULT_MAX_AVOIDPARTIALSPEND_FEE]
= xref:wallet.adoc[wallet]::DEFAULT&lowbar;MAX&lowbar;AVOIDPARTIALSPEND&lowbar;FEE
:relfileprefix: ../
:mrdocs:

maximum fee increase allowed to do partial spend avoidance, even for nodes with this feature disabled by default

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
inline constexpr xref:CAmount.adoc[CAmount] DEFAULT&lowbar;MAX&lowbar;AVOIDPARTIALSPEND&lowbar;FEE = 0;
----

== Description

A value of &hyphen;1 disables this feature completely&period; A value of 0 (current default) means to attempt to do partial spend avoidance, and use its results if the fees remain _unchanged_ A value &gt; 0 means to do partial spend avoidance if the fee difference against a regular coin selection instance is in the range &lsqb;0&period;&period;value&rsqb;&period;


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