Changeset View
Changeset View
Standalone View
Standalone View
src/primitives/transaction.h
Show First 20 Lines • Show All 301 Lines • ▼ Show 20 Lines | public: | ||||
Amount GetValueOut() const; | Amount GetValueOut() const; | ||||
// GetValueIn() is a method on CCoinsViewCache, because | // GetValueIn() is a method on CCoinsViewCache, because | ||||
// inputs must be known to compute value in. | // inputs must be known to compute value in. | ||||
// 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 the net number of outputs | |||||
int64_t GetNetOutputs() 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; | ||||
/** | /** | ||||
* 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 | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |