[#wallet-CWallet-WriteBestBlock]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::WriteBestBlock
:relfileprefix: ../../
:mrdocs:

Write the current best block to database

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fde06d58), requires&lowbar;capability(0x7f95061a9a98), requires&lowbar;capability(0x7f94f2b7a5a8), requires&lowbar;capability(0x7f94f0cf9238), requires&lowbar;capability(0x7f94fee3bc28)&rsqb;&rsqb;
void
WriteBestBlock() const;
----


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