wallet::CWallet::SetAddressPreviouslySpent

Record whether a destination has been previously spent.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7ff3720f0b88), requires_capability(0x7ff365f20b88), requires_capability(0x7ff35de5f538), requires_capability(0x7ff35efe4018), requires_capability(0x7ff366fd05f8)]]
bool
SetAddressPreviouslySpent(
    WalletBatch& batch,
    CTxDestination const& dest,
    bool used);

Return Value

true if the state was written.

Parameters

NameDescription
batchThe database batch to write through.
destThe destination to update.
usedWhether the destination is marked as spent.