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

Constructs the estimator bound to a mempool and chainstate&period;

== Synopsis

Declared in `&lt;policy&sol;fees&sol;mempool&lowbar;estimator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
MemPoolFeeRateEstimator(
    xref:fs/path.adoc[fs::path] mempool&lowbar;estimator&lowbar;file&lowbar;path,
    xref:CTxMemPool.adoc[CTxMemPool] const& mempool,
    xref:ChainstateManager.adoc[ChainstateManager]& chainman);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *mempool&lowbar;estimator&lowbar;file&lowbar;path*
| Path to the file that persists mined&hyphen;block statistics&period;
| *mempool*
| The mempool to build block templates from&period;
| *chainman*
| The chainstate manager providing the active chain&period;
|===


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