[#Descriptor-MaxSatisfactionWeight]
= xref:Descriptor.adoc[Descriptor]::MaxSatisfactionWeight
:relfileprefix: ../
:mrdocs:

Get the maximum size of a satisfaction for this descriptor, in weight units&period;

== Synopsis

Declared in `&lt;script&sol;descriptor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::optional&lt;int64&lowbar;t&gt;
MaxSatisfactionWeight(bool use&lowbar;max&lowbar;sig) const = 0;
----

== Return Value

The maximum satisfaction weight, or nullopt if unknown&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *use&lowbar;max&lowbar;sig*
| Whether to assume ECDSA signatures will have a high&hyphen;r&period;
|===


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