Lock an output so it is not selected for spending.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7f94fde04f28), requires_capability(0x7f95061a7c68), requires_capability(0x7f94f2b78778), requires_capability(0x7f94f0cf7408), requires_capability(0x7f94fee39df8)]]
bool
LockCoin(
    COutPoint const& output,
    bool persist);

Return Value

true if the lock was recorded.

Parameters

Name

Description

output

The outpoint to lock.

persist

Whether to persist the lock to disk.

Created with MrDocs