Record whether a destination has been previously spent.
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);
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. |