[#wallet-CWallet-UpdateWalletTxFn] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::UpdateWalletTxFn :relfileprefix: ../../ :mrdocs: Callback for updating transaction metadata in mapWallet. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using UpdateWalletTxFn = std::function<bool(xref:wallet/CWalletTx.adoc[CWalletTx]&, bool)>; ---- == Return Value true if wtx is changed and needs to be saved to disk, otherwise false == Parameters [cols="1,4"] |=== | Name| Description | *wtx* | ‐ reference to mapWallet transaction to update | *new_tx* | ‐ true if wtx is newly inserted, false if it previously existed |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#