A UTXO entry.
Declared in <coins.h>
class Coin;
Serialized format:
VARINT((height << 1) | (coinbase ? 1 : 0))
the non-spent CTxOut (via TxOutCompression)
| Name | Description |
|---|---|
Coin [constructor] | Constructors |
Clear | Reset the coin to the null, spent state. |
DynamicMemoryUsage | Report the heap memory used by this coin beyond its own size. |
IsCoinBase | Report whether the containing transaction was a coinbase. |
IsSpent | Either this coin never existed (see e.g. coinEmpty in coins.cpp), or it did exist and has been spent. |
Serialize | Serialize the coin to the given stream. |
Unserialize | Read the coin from the given stream. |
| Name | Description |
|---|---|
fCoinBase | whether containing transaction was a coinbase |
nHeight | at which height this containing transaction was included in the active block chain |
out | unspent transaction output |
| Name | Description |
|---|---|
AccessByTxid | Utility function to find any unspent output with a given txid. This function can be quite expensive because in the event of a transaction which is not found in the cache, it can cause up to MAX_OUTPUTS_PER_BLOCK lookups to database, so it should be used with care. |