diff options
| author | Alex Morcos <[email protected]> | 2014-08-26 12:59:21 -0400 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2014-09-08 11:28:46 -0400 |
| commit | c26649f9ed03fa9505e44aaf7f8cfdaa81f734cc (patch) | |
| tree | 96c35a3632b724ad67ee4d43d0be0ea0df04a8db /src/core.h | |
| parent | Merge pull request #4812 (diff) | |
| download | discoin-c26649f9ed03fa9505e44aaf7f8cfdaa81f734cc.tar.xz discoin-c26649f9ed03fa9505e44aaf7f8cfdaa81f734cc.zip | |
Track modified size in TxMemPoolEntry so that we can correctly compute priority.
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 34c00c414..1233fbde6 100644 --- a/src/core.h +++ b/src/core.h @@ -284,6 +284,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()); |