CCoinsViewCache::AddCoin

Add a coin. Set possible_overwrite to true if an unspent version may already exist in the cache.

Synopsis

Declared in <coins.h>

void
AddCoin(
    COutPoint const& outpoint,
    Coin&& coin,
    bool possible_overwrite);

Parameters

NameDescription
outpointThe outpoint to add the coin under.
coinThe coin to add (moved into the cache).
possible_overwriteSet to true if an unspent version may already exist in the cache.