Changeset View
Changeset View
Standalone View
Standalone View
src/miner.h
Show All 20 Lines | |||||
class CReserveKey; | class CReserveKey; | ||||
class CScript; | class CScript; | ||||
class CWallet; | class CWallet; | ||||
static const bool DEFAULT_PRINTPRIORITY = false; | static const bool DEFAULT_PRINTPRIORITY = false; | ||||
struct CBlockTemplateEntry { | struct CBlockTemplateEntry { | ||||
CTransactionRef tx; | CTransactionRef tx; | ||||
Amount fees; | //!< Total real fees paid by the transaction and cached to avoid parent | ||||
int64_t sigOpCount; | //!< lookup | ||||
Amount txFee; | |||||
CBlockTemplateEntry(CTransactionRef _tx, Amount _fees, int64_t _sigOpCount) | //!< Cached total size of the transaction to avoid reserializing transaction | ||||
: tx(_tx), fees(_fees), sigOpCount(_sigOpCount){}; | size_t txSize; | ||||
//!< Cached total number of SigOps | |||||
uint64_t txSigOps; | |||||
CBlockTemplateEntry(CTransactionRef _tx, Amount _fees, uint64_t _size, | |||||
int64_t _sigOps) | |||||
: tx(_tx), txFee(_fees), txSize(_size), txSigOps(_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 |