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

Blocks until the wallet state is up&hyphen;to&hyphen;date to &sol;at least&sol; the current chain at the time this function is entered Obviously holding cs&lowbar;main&sol;cs&lowbar;wallet when going into this call may cause deadlock

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;locks&lowbar;excluded(0x7f2e1e599d38), requires&lowbar;capability(0x7f2e1e599ed8), locks&lowbar;excluded(0x7f2e11aaaaf8), requires&lowbar;capability(0x7f2e11aaac98), locks&lowbar;excluded(0x7f2e16a008e8), requires&lowbar;capability(0x7f2e16a00a88), locks&lowbar;excluded(0x7f2e15f2fd88), requires&lowbar;capability(0x7f2e15f2ff28), locks&lowbar;excluded(0x7f2e12c6ea18), requires&lowbar;capability(0x7f2e12c6ebb8)&rsqb;&rsqb;
void
BlockUntilSyncedToCurrentChain() const;
----


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