@@ -84,7 +84,7 @@ class CTxMemPoolEntry
8484 bool hadNoDependencies; // !< Not dependent on any other txs when it entered the mempool
8585 CAmount inChainInputValue; // !< Sum of all txin values that are already in blockchain
8686 bool spendsCoinbase; // !< keep track of transactions that spend a coinbase
87- unsigned int sigOpCost; // !< Total sigop cost
87+ int64_t sigOpCost; // !< Total sigop cost
8888 int64_t feeDelta; // !< Used for determining the priority of the transaction for mining in a block
8989 LockPoints lockPoints; // !< Track the height and time at which tx was final
9090
@@ -101,13 +101,13 @@ class CTxMemPoolEntry
101101 uint64_t nCountWithAncestors;
102102 uint64_t nSizeWithAncestors;
103103 CAmount nModFeesWithAncestors;
104- unsigned int nSigOpCostWithAncestors;
104+ int64_t nSigOpCostWithAncestors;
105105
106106public:
107107 CTxMemPoolEntry (const CTransaction& _tx, const CAmount& _nFee,
108108 int64_t _nTime, double _entryPriority, unsigned int _entryHeight,
109109 bool poolHasNoInputsOf, CAmount _inChainInputValue, bool spendsCoinbase,
110- unsigned int nSigOpsCost, LockPoints lp);
110+ int64_t nSigOpsCost, LockPoints lp);
111111 CTxMemPoolEntry (const CTxMemPoolEntry& other);
112112
113113 const CTransaction& GetTx () const { return this ->tx ; }
@@ -121,7 +121,7 @@ class CTxMemPoolEntry
121121 int64_t GetTime () const { return nTime; }
122122 unsigned int GetHeight () const { return entryHeight; }
123123 bool WasClearAtEntry () const { return hadNoDependencies; }
124- unsigned int GetSigOpCost () const { return sigOpCost; }
124+ int64_t GetSigOpCost () const { return sigOpCost; }
125125 int64_t GetModifiedFee () const { return nFee + feeDelta; }
126126 size_t DynamicMemoryUsage () const { return nUsageSize; }
127127 const LockPoints& GetLockPoints () const { return lockPoints; }
@@ -145,7 +145,7 @@ class CTxMemPoolEntry
145145 uint64_t GetCountWithAncestors () const { return nCountWithAncestors; }
146146 uint64_t GetSizeWithAncestors () const { return nSizeWithAncestors; }
147147 CAmount GetModFeesWithAncestors () const { return nModFeesWithAncestors; }
148- unsigned int GetSigOpCostWithAncestors () const { return nSigOpCostWithAncestors; }
148+ int64_t GetSigOpCostWithAncestors () const { return nSigOpCostWithAncestors; }
149149};
150150
151151// Helpers for modifying CTxMemPool::mapTx, which is a boost multi_index.
0 commit comments