[#node-CBlockIndexWorkComparator]
= xref:node.adoc[node]::CBlockIndexWorkComparator
:relfileprefix: ../
:mrdocs:

Orders block indices by most accumulated work, for choosing the best tip&period;

== Synopsis

Declared in `&lt;node&sol;blockstorage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct CBlockIndexWorkComparator;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:node/CBlockIndexWorkComparator/is_transparent.adoc[`is&lowbar;transparent`] 
| Marks the comparator as transparent so heterogeneous lookups are allowed&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:node/CBlockIndexWorkComparator/operator_call.adoc[`operator()`] 
| Order two block indices by accumulated work (and tie&hyphen;breakers)&period;
|===



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