[#TxGraph-GetWorstMainChunk]
= xref:TxGraph.adoc[TxGraph]::GetWorstMainChunk
:relfileprefix: ../
:mrdocs:

Get the last chunk in the main graph, i&period;e&period;, the last chunk that would be returned by a BlockBuilder created now, together with its feerate&period; The chunk is returned in reverse&hyphen;topological order, so every element is preceded by all its descendants&period; The main graph must not be oversized&period; If the graph is empty, &lcub;&lcub;&rcub;, FeePerWeight&lcub;&rcub;&rcub; is returned&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::pair&lt;std::vector&lt;Ref*&gt;, FeePerWeight&gt;
GetWorstMainChunk() noexcept = 0;
----

== Return Value

The last chunk (in reverse&hyphen;topological order) and its feerate&period;


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