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

TxGraph is internally lazy, and will not compute many things until they are needed&period; Calling DoWork will perform some work now (controlled by max&lowbar;cost) so that future operations are fast, if there is any&period; Returns whether all currently&hyphen;available work is done&period; This can be invoked while oversized, but oversized graphs will be skipped by this call&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
DoWork(uint64&lowbar;t max&lowbar;cost) noexcept = 0;
----

== Return Value

Whether all currently&hyphen;available work is done&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *max&lowbar;cost*
| Upper bound on the amount of work to perform in this call&period;
|===


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