Record whether the key behind a transaction output has been spent.
Declared in <wallet/wallet.h>
[[requires_capability(0x7ff3720ef5d8), requires_capability(0x7ff365f1f5d8), requires_capability(0x7ff35de5df88), requires_capability(0x7ff35efe2a68), requires_capability(0x7ff366fcf048)]]
void
SetSpentKeyState(
WalletBatch& batch,
Txid const& hash,
unsigned int n,
bool used,
std::set<CTxDestination>& tx_destinations);
| Name | Description |
|---|---|
| batch | The database batch to write through. |
| hash | The txid of the output. |
| n | The output index within the transaction. |
| used | Whether the key is marked as used/spent. |
| tx_destinations | Set to the destinations affected by the update. |