diff --git a/src/txmempool.h b/src/txmempool.h --- a/src/txmempool.h +++ b/src/txmempool.h @@ -118,11 +118,6 @@ const CTransaction &GetTx() const { return *this->tx; } CTransactionRef GetSharedTx() const { return this->tx; } - /** - * Fast calculation of lower bound of current priority as update from entry - * priority. Only inputs that were originally in-chain will age. - */ - double GetPriority(unsigned int currentHeight) const; const Amount GetFee() const { return nFee; } size_t GetTxSize() const { return nTxSize; } diff --git a/src/txmempool.cpp b/src/txmempool.cpp --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -53,18 +53,6 @@ nSigOpCountWithAncestors = sigOpCount; } -double CTxMemPoolEntry::GetPriority(unsigned int currentHeight) const { - double deltaPriority = - double((currentHeight - entryHeight) * (inChainInputValue / SATOSHI)) / - nModSize; - double dResult = entryPriority + deltaPriority; - // This should only happen if it was called with a height below entry height - if (dResult < 0) { - dResult = 0; - } - return dResult; -} - void CTxMemPoolEntry::UpdateFeeDelta(Amount newFeeDelta) { nModFeesWithDescendants += newFeeDelta - feeDelta; nModFeesWithAncestors += newFeeDelta - feeDelta;