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

Callback for updating transaction metadata in mapWallet&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
using UpdateWalletTxFn = std::function&lt;bool(xref:wallet/CWalletTx.adoc[CWalletTx]&, bool)&gt;;
----

== Return Value

true if wtx is changed and needs to be saved to disk, otherwise false

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wtx*
| &hyphen; reference to mapWallet transaction to update
| *new&lowbar;tx*
| &hyphen; true if wtx is newly inserted, false if it previously existed
|===


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