[#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 `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7fb955bd1178), requires_capability(0x7fb94db85a98), requires_capability(0x7fb95ab15918), requires_capability(0x7fb959fb24f8), requires_capability(0x7fb956cbc788)]] void WriteBestBlock() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#