A UTXO entry.
More...
#include <coins.h>
A UTXO entry.
Serialized format:
- VARINT((coinbase ? 2 : 0) | (coinstake ? 1 : 0) | (height << 2))
- the non-spent CTxOut (via CTxOutCompressor)
Definition at line 31 of file coins.h.
◆ Coin() [1/3]
| Coin::Coin |
( |
CTxOut && |
outIn, |
|
|
int |
nHeightIn, |
|
|
bool |
fCoinBaseIn, |
|
|
bool |
fCoinStakeIn |
|
) |
| |
|
inline |
construct a Coin from a CTxOut and height/coinbase properties.
Definition at line 47 of file coins.h.
◆ Coin() [2/3]
| Coin::Coin |
( |
const CTxOut & |
outIn, |
|
|
int |
nHeightIn, |
|
|
bool |
fCoinBaseIn, |
|
|
bool |
fCoinStakeIn |
|
) |
| |
|
inline |
◆ Coin() [3/3]
empty constructor
Definition at line 58 of file coins.h.
◆ Clear()
◆ DynamicMemoryUsage()
| size_t Coin::DynamicMemoryUsage |
( |
| ) |
const |
|
inline |
◆ IsCoinBase()
| bool Coin::IsCoinBase |
( |
| ) |
const |
|
inline |
◆ IsCoinStake()
| bool Coin::IsCoinStake |
( |
| ) |
const |
|
inline |
◆ IsSpent()
| bool Coin::IsSpent |
( |
| ) |
const |
|
inline |
◆ Serialize()
template<typename Stream >
| void Coin::Serialize |
( |
Stream & |
s | ) |
const |
|
inline |
◆ Unserialize()
template<typename Stream >
| void Coin::Unserialize |
( |
Stream & |
s | ) |
|
|
inline |
◆ fCoinBase
whether the containing transaction was a coinbase
Definition at line 35 of file coins.h.
◆ fCoinStake
whether the containing transaction was a coinstake
Definition at line 38 of file coins.h.
◆ nHeight
at which height the containing transaction was included in the active block chain
Definition at line 44 of file coins.h.
◆ out
unspent transaction output
Definition at line 41 of file coins.h.
The documentation for this class was generated from the following file: