[#wallet-CWalletTx-updateState]
= xref:wallet.adoc[wallet]::xref:wallet/CWalletTx.adoc[CWalletTx]::updateState
:relfileprefix: ../../
:mrdocs:

Update transaction state when attaching to a chain, filling in heights of conflicted and confirmed blocks

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
updateState(xref:interfaces/Chain.adoc[interfaces::Chain]& chain);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chain*
| The chain interface used to look up block heights&period;
|===


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