Record whether a destination has been previously spent.
Declared in <wallet/wallet.h>
[[requires_capability(0x7fd7422a83a8), requires_capability(0x7fd745cdefa8), requires_capability(0x7fd73e2a1488), requires_capability(0x7fd73e450928), requires_capability(0x7fd7399909c8)]]
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. |