wallet::CWallet::SetAddressPreviouslySpent

Record whether a destination has been previously spent.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7f94fde061d8), requires_capability(0x7f95061a8f18), requires_capability(0x7f94f2b79a28), requires_capability(0x7f94f0cf86b8), requires_capability(0x7f94fee3b0a8)]]
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.