A UTXO entry.
Synopsis
Declared in <coins.h>
class Coin;
Description
Serialized format:
-
VARINTheight << 1) | (coinbase ? 1 : 0
-
the non‐spent CTxOut (via TxOutCompression)
Member Functions
Name |
Description |
|
Constructors |
Reset the coin to the null, spent state. |
|
Report the heap memory used by this coin beyond its own size. |
|
Report whether the containing transaction was a coinbase. |
|
Either this coin never existed (see e.g. coinEmpty in coins.cpp), or it did exist and has been spent. |
|
Serialize the coin to the given stream. |
|
Read the coin from the given stream. |
Data Members
Non-Member Functions
Name |
Description |
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. |
Created with MrDocs