wallet::CWallet::LockCoin

Lock an output so it is not selected for spending.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7fd7422a70f8), requires_capability(0x7fd745cddcf8), requires_capability(0x7fd73e2a01d8), requires_capability(0x7fd73e44f678), requires_capability(0x7fd73998f718)]]
bool
LockCoin(
    COutPoint const& output,
    bool persist);

Return Value

true if the lock was recorded.

Parameters

NameDescription
outputThe outpoint to lock.
persistWhether to persist the lock to disk.