Changeset View
Changeset View
Standalone View
Standalone View
src/primitives/transaction.h
Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Lines | public: | ||||
// Compute priority, given priority of inputs and (optionally) tx size | // Compute priority, given priority of inputs and (optionally) tx size | ||||
double ComputePriority(double dPriorityInputs, | double ComputePriority(double dPriorityInputs, | ||||
unsigned int nTxSize = 0) const; | unsigned int nTxSize = 0) const; | ||||
// Compute modified tx size for priority calculation (optionally given tx | // Compute modified tx size for priority calculation (optionally given tx | ||||
// size) | // size) | ||||
unsigned int CalculateModifiedSize(unsigned int nTxSize = 0) const; | unsigned int CalculateModifiedSize(unsigned int nTxSize = 0) const; | ||||
// Computes an adjusted tx size so that the UTXIs are billed partially | |||||
// upfront. | |||||
size_t GetBillableSize() const; | |||||
/** | /** | ||||
* Get the total transaction size in bytes. | * Get the total transaction size in bytes. | ||||
* @return Total transaction size in bytes | * @return Total transaction size in bytes | ||||
*/ | */ | ||||
unsigned int GetTotalSize() const; | unsigned int GetTotalSize() const; | ||||
bool IsCoinBase() const { | bool IsCoinBase() const { | ||||
return (vin.size() == 1 && vin[0].prevout.IsNull()); | return (vin.size() == 1 && vin[0].prevout.IsNull()); | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |