Changeset View
Changeset View
Standalone View
Standalone View
src/coins.h
Show All 16 Lines | |||||
#include <functional> | #include <functional> | ||||
#include <unordered_map> | #include <unordered_map> | ||||
/** | /** | ||||
* A UTXO entry. | * A UTXO entry. | ||||
* | * | ||||
* Serialized format: | * Serialized format: | ||||
* - VARINT((coinbase ? 1 : 0) | (height << 1)) | * - VARINT((coinbase ? 1 : 0) | (height << 1)) | ||||
* - the non-spent CTxOut (via CTxOutCompressor) | * - the non-spent CTxOut (via TxOutCompression) | ||||
*/ | */ | ||||
class Coin { | class Coin { | ||||
//! Unspent transaction output. | //! Unspent transaction output. | ||||
CTxOut out; | CTxOut out; | ||||
//! Whether containing transaction was a coinbase and height at which the | //! Whether containing transaction was a coinbase and height at which the | ||||
//! transaction was included into a block. | //! transaction was included into a block. | ||||
uint32_t nHeightAndIsCoinBase; | uint32_t nHeightAndIsCoinBase; | ||||
▲ Show 20 Lines • Show All 335 Lines • Show Last 20 Lines |