[#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(0x7ff3720f1708), requires_capability(0x7ff365f21708), requires_capability(0x7ff35de600b8), requires_capability(0x7ff35efe4b98), requires_capability(0x7ff366fd1178)]] void WriteBestBlock() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#