@ -68,6 +68,7 @@ private:
bool hadNoDependencies ; //! Not dependent on any other txs when it entered the mempool
bool hadNoDependencies ; //! Not dependent on any other txs when it entered the mempool
CAmount inChainInputValue ; //! Sum of all txin values that are already in blockchain
CAmount inChainInputValue ; //! Sum of all txin values that are already in blockchain
bool spendsCoinbase ; //! keep track of transactions that spend a coinbase
bool spendsCoinbase ; //! keep track of transactions that spend a coinbase
unsigned int sigOpCount ; //! Legacy sig ops plus P2SH sig op count
// Information about descendants of this transaction that are in the
// Information about descendants of this transaction that are in the
// mempool; if we remove this transaction we must remove all of these
// mempool; if we remove this transaction we must remove all of these
@ -81,7 +82,8 @@ private:
public :
public :
CTxMemPoolEntry ( const CTransaction & _tx , const CAmount & _nFee ,
CTxMemPoolEntry ( const CTransaction & _tx , const CAmount & _nFee ,
int64_t _nTime , double _entryPriority , unsigned int _entryHeight ,
int64_t _nTime , double _entryPriority , unsigned int _entryHeight ,
bool poolHasNoInputsOf , CAmount _inChainInputValue , bool spendsCoinbase ) ;
bool poolHasNoInputsOf , CAmount _inChainInputValue , bool spendsCoinbase ,
unsigned int nSigOps ) ;
CTxMemPoolEntry ( const CTxMemPoolEntry & other ) ;
CTxMemPoolEntry ( const CTxMemPoolEntry & other ) ;
const CTransaction & GetTx ( ) const { return this - > tx ; }
const CTransaction & GetTx ( ) const { return this - > tx ; }
@ -95,6 +97,7 @@ public:
int64_t GetTime ( ) const { return nTime ; }
int64_t GetTime ( ) const { return nTime ; }
unsigned int GetHeight ( ) const { return entryHeight ; }
unsigned int GetHeight ( ) const { return entryHeight ; }
bool WasClearAtEntry ( ) const { return hadNoDependencies ; }
bool WasClearAtEntry ( ) const { return hadNoDependencies ; }
unsigned int GetSigOpCount ( ) const { return sigOpCount ; }
size_t DynamicMemoryUsage ( ) const { return nUsageSize ; }
size_t DynamicMemoryUsage ( ) const { return nUsageSize ; }
// Adjusts the descendant state, if this entry is not dirty.
// Adjusts the descendant state, if this entry is not dirty.