Record whether a destination has been previously spent.
Declared in <wallet/wallet.h>
[[requires_capability(0x7fb955bd05f8), requires_capability(0x7fb94db84f18), requires_capability(0x7fb95ab14d98), requires_capability(0x7fb959fb1978), requires_capability(0x7fb956cbbc08)]]
bool
SetAddressPreviouslySpent(
WalletBatch& batch,
CTxDestination const& dest,
bool used);
true if the state was written.
| Name | Description |
|---|---|
| batch | The database batch to write through. |
| dest | The destination to update. |
| used | Whether the destination is marked as spent. |