Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show All 25 Lines | |||||
#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; | ||||
inline double AllowFreeThreshold() { | inline double AllowFreeThreshold() { | ||||
return COIN * 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 754 Lines • Show Last 20 Lines |