Return a reference to Coin in the cache, or coinEmpty if not found. This is more efficient than GetCoin.

Synopsis

Declared in <coins.h>

Coin const&
AccessCoin(COutPoint const& output) const;

Description

Generally, do not hold the reference returned for more than a short scope. While the current implementation allows for modifications to the contents of the cache while holding the reference, this behavior should not be relied on! To be safe, best to not hold the returned reference through any other calls to this cache.

Return Value

Reference to the cached coin, or an empty coin if not found.

Parameters

Name

Description

output

The outpoint whose coin to access.

Created with MrDocs