Changeset View
Changeset View
Standalone View
Standalone View
src/miner.h
Show All 28 Lines | struct CBlockTemplateEntry { | ||||
//!< Total real fees paid by the transaction and cached to avoid parent | //!< Total real fees paid by the transaction and cached to avoid parent | ||||
//!< lookup | //!< lookup | ||||
Amount txFee; | Amount txFee; | ||||
//!< Cached total size of the transaction to avoid reserializing transaction | //!< Cached total size of the transaction to avoid reserializing transaction | ||||
size_t txSize; | size_t txSize; | ||||
//!< Cached total number of SigOps | //!< Cached total number of SigOps | ||||
uint64_t txSigOps; | uint64_t txSigOps; | ||||
//!< Track the "order" of a transaction in a package. (Order is >= 0) Larger | |||||
//!< number means it has more dependencies. It is roughly the number of | |||||
//!< dependencies this transaction has. | |||||
uint64_t packageOrder; | |||||
//!< Estimated package fees (This is guaranteed to be >= real fees) | |||||
Amount packageFee; | |||||
//!< Estimated package size (This is guaranteed to be >= real size) | |||||
size_t packageSize; | |||||
//!< Estimated package sigops (This is guaranteed to be >= real sigops) | |||||
uint64_t packageSigOps; | |||||
CBlockTemplateEntry(CTransactionRef _tx, Amount _fees, uint64_t _size, | CBlockTemplateEntry(CTransactionRef _tx, Amount _fees, uint64_t _size, | ||||
int64_t _sigOps) | int64_t _sigOps) | ||||
: tx(_tx), txFee(_fees), txSize(_size), txSigOps(_sigOps) {} | : tx(_tx), txFee(_fees), txSize(_size), txSigOps(_sigOps), | ||||
packageOrder(0), packageFee(_fees), packageSize(_size), | |||||
packageSigOps(_sigOps) {} | |||||
}; | }; | ||||
struct CBlockTemplate { | struct CBlockTemplate { | ||||
CBlock block; | CBlock block; | ||||
std::vector<CBlockTemplateEntry> entries; | std::vector<CBlockTemplateEntry> entries; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines |