diff options
| author | Pieter Wuille <[email protected]> | 2014-09-15 07:24:05 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-15 07:29:04 +0200 |
| commit | 2ec82e94e6b49a0e74243559b96ee736c0c54de7 (patch) | |
| tree | de499243eaa1d1563ba9c342299f5018cc5fa43d /src/core.h | |
| parent | Merge pull request #4909 (diff) | |
| parent | Track modified size in TxMemPoolEntry so that we can correctly compute priority. (diff) | |
| download | discoin-2ec82e94e6b49a0e74243559b96ee736c0c54de7.tar.xz discoin-2ec82e94e6b49a0e74243559b96ee736c0c54de7.zip | |
Merge pull request #4817
c26649f Track modified size in TxMemPoolEntry so that we can correctly compute priority. (Alex Morcos)
Diffstat (limited to 'src/core.h')
| -rw-r--r-- | src/core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.h b/src/core.h index 030eb1773..9a2ac4748 100644 --- a/src/core.h +++ b/src/core.h @@ -283,6 +283,9 @@ public: // Compute priority, given priority of inputs and (optionally) tx size double ComputePriority(double dPriorityInputs, unsigned int nTxSize=0) const; + // Compute modified tx size for priority calculation (optionally given tx size) + unsigned int CalculateModifiedSize(unsigned int nTxSize=0) const; + bool IsCoinBase() const { return (vin.size() == 1 && vin[0].prevout.IsNull()); |