Return a reference to Coin in the cache, or coinEmpty if not found. This is more efficient than GetCoin.
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.
Reference to the cached coin, or an empty coin if not found.
| Name | Description |
|---|---|
| output | The outpoint whose coin to access. |