Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show All 21 Lines | |||||
#include <boost/multi_index/hashed_index.hpp> | #include <boost/multi_index/hashed_index.hpp> | ||||
#include <boost/multi_index/ordered_index.hpp> | #include <boost/multi_index/ordered_index.hpp> | ||||
#include <boost/multi_index_container.hpp> | #include <boost/multi_index_container.hpp> | ||||
#include <boost/signals2/signal.hpp> | #include <boost/signals2/signal.hpp> | ||||
class CAutoFile; | class CAutoFile; | ||||
class CBlockIndex; | class CBlockIndex; | ||||
class Config; | |||||
inline double AllowFreeThreshold() { | inline double AllowFreeThreshold() { | ||||
return COIN.GetSatoshis() * 144 / 250; | return COIN.GetSatoshis() * 144 / 250; | ||||
} | } | ||||
inline bool AllowFree(double dPriority) { | inline bool AllowFree(double dPriority) { | ||||
// Large (in bytes) low-priority (new, small-coin) transactions need a fee. | // Large (in bytes) low-priority (new, small-coin) transactions need a fee. | ||||
return dPriority > AllowFreeThreshold(); | return dPriority > AllowFreeThreshold(); | ||||
▲ Show 20 Lines • Show All 537 Lines • ▼ Show 20 Lines | public: | ||||
bool addUnchecked(const uint256 &hash, const CTxMemPoolEntry &entry, | bool addUnchecked(const uint256 &hash, const CTxMemPoolEntry &entry, | ||||
bool validFeeEstimate = true); | bool validFeeEstimate = true); | ||||
bool addUnchecked(const uint256 &hash, const CTxMemPoolEntry &entry, | bool addUnchecked(const uint256 &hash, const CTxMemPoolEntry &entry, | ||||
setEntries &setAncestors, bool validFeeEstimate = true); | setEntries &setAncestors, bool validFeeEstimate = true); | ||||
void removeRecursive( | void removeRecursive( | ||||
const CTransaction &tx, | const CTransaction &tx, | ||||
MemPoolRemovalReason reason = MemPoolRemovalReason::UNKNOWN); | MemPoolRemovalReason reason = MemPoolRemovalReason::UNKNOWN); | ||||
void removeForReorg(const CCoinsViewCache *pcoins, | void removeForReorg(const Config &config, const CCoinsViewCache *pcoins, | ||||
unsigned int nMemPoolHeight, int flags); | unsigned int nMemPoolHeight, int flags); | ||||
void removeConflicts(const CTransaction &tx); | void removeConflicts(const CTransaction &tx); | ||||
void removeForBlock(const std::vector<CTransactionRef> &vtx, | void removeForBlock(const std::vector<CTransactionRef> &vtx, | ||||
unsigned int nBlockHeight); | unsigned int nBlockHeight); | ||||
void clear(); | void clear(); | ||||
// lock free | // lock free | ||||
void _clear(); | void _clear(); | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |