wallet::CWallet::UpdateWalletTxFn

Callback for updating transaction metadata in mapWallet.

Synopsis

Declared in <wallet/wallet.h>

using UpdateWalletTxFn = std::function<bool(CWalletTx&, bool)>;

Return Value

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

Parameters

NameDescription
wtx- reference to mapWallet transaction to update
new_tx- true if wtx is newly inserted, false if it previously existed