Changeset View
Changeset View
Standalone View
Standalone View
src/miner.h
Show All 22 Lines | |||||
namespace Consensus { | namespace Consensus { | ||||
struct Params; | struct Params; | ||||
} | } | ||||
static const bool DEFAULT_PRINTPRIORITY = false; | static const bool DEFAULT_PRINTPRIORITY = false; | ||||
struct CBlockTemplateEntry { | struct CBlockTemplateEntry { | ||||
CTransactionRef tx; | CTransactionRef tx; | ||||
//!< Total real fees paid by the transaction and cached to avoid parent | Amount fees; | ||||
//!< lookup | int64_t sigOpCount; | ||||
Amount txFee; | |||||
//!< Cached total size of the transaction to avoid reserializing transaction | CBlockTemplateEntry(CTransactionRef _tx, Amount _fees, int64_t _sigOpCount) | ||||
size_t txSize; | : tx(_tx), fees(_fees), sigOpCount(_sigOpCount){}; | ||||
//!< 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 186 Lines • Show Last 20 Lines |