aboutsummaryrefslogtreecommitdiff
path: root/src/core.h
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2014-08-26 12:59:21 -0400
committerAlex Morcos <morcos@chaincode.com>2014-09-08 11:28:46 -0400
commitc26649f9ed03fa9505e44aaf7f8cfdaa81f734cc (patch)
tree96c35a3632b724ad67ee4d43d0be0ea0df04a8db /src/core.h
parentb8d92236f61699846f67d8ce6cb55458a46f9de1 (diff)
downloadbitcoin-c26649f9ed03fa9505e44aaf7f8cfdaa81f734cc.tar.xz
Track modified size in TxMemPoolEntry so that we can correctly compute priority.
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.h b/src/core.h
index 34c00c4142..1233fbde61 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());