diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-15 07:24:05 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-09-15 07:29:04 +0200 |
commit | 2ec82e94e6b49a0e74243559b96ee736c0c54de7 (patch) | |
tree | de499243eaa1d1563ba9c342299f5018cc5fa43d /src/core.h | |
parent | a0a8700bc84cf10d99d9d3699e7b0fdfc323cf1c (diff) | |
parent | c26649f9ed03fa9505e44aaf7f8cfdaa81f734cc (diff) | |
download | bitcoin-2ec82e94e6b49a0e74243559b96ee736c0c54de7.tar.xz |
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 030eb17734..9a2ac47487 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()); |