[#CCoinsViewCache-BatchWrite]
= xref:CCoinsViewCache.adoc[CCoinsViewCache]::BatchWrite
:relfileprefix: ../
:mrdocs:

Write flagged coins from a cursor into this cache and update the best block&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
BatchWrite(
    xref:CoinsViewCacheCursor.adoc[CoinsViewCacheCursor]& cursor,
    xref:uint256.adoc[uint256] const& block&lowbar;hash) override;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cursor*
| Cursor iterating the flagged coin entries to write&period;
| *block&lowbar;hash*
| New best block hash to record&period;
|===


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