[#PackageMempoolAcceptResult-2constructor-05]
= xref:PackageMempoolAcceptResult.adoc[PackageMempoolAcceptResult]::PackageMempoolAcceptResult
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;validation&period;h&gt;`

Construct a package result from a package&hyphen;wide state and per&hyphen;transaction results&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:PackageMempoolAcceptResult/2constructor-08.adoc[PackageMempoolAcceptResult](
    xref:PackageValidationState.adoc[PackageValidationState] state,
    std::map&lt;Wtxid, MempoolAcceptResult&gt;&& results);
----

[.small]#xref:PackageMempoolAcceptResult/2constructor-08.adoc[_» more&period;&period;&period;_]#

Constructor to create a PackageMempoolAcceptResult from a single MempoolAcceptResult&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:PackageMempoolAcceptResult/2constructor-01.adoc[PackageMempoolAcceptResult](
    xref:Wtxid.adoc[Wtxid] const& wtxid,
    xref:MempoolAcceptResult.adoc[MempoolAcceptResult] const& result);
----

[.small]#xref:PackageMempoolAcceptResult/2constructor-01.adoc[_» more&period;&period;&period;_]#

Construct a package result from a package&hyphen;wide state, a package feerate, and per&hyphen;transaction results&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:PackageMempoolAcceptResult/2constructor-07.adoc[PackageMempoolAcceptResult](
    xref:PackageValidationState.adoc[PackageValidationState] state,
    xref:CFeeRate.adoc[CFeeRate] feerate,
    std::map&lt;Wtxid, MempoolAcceptResult&gt;&& results);
----

[.small]#xref:PackageMempoolAcceptResult/2constructor-07.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *state*
| Validation state for the package as a whole&period;
| *results*
| Map from wtxid to the finished result for each transaction&period;
| *wtxid*
| Wtxid of the single transaction&period;
| *result*
| Result of validating that transaction&period;
| *feerate*
| The package feerate at which the package was evaluated&period;
|===


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