Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show All 25 Lines | |||||
#include <utility> | #include <utility> | ||||
#include <vector> | #include <vector> | ||||
class CBlockIndex; | class CBlockIndex; | ||||
class Config; | class Config; | ||||
extern CCriticalSection cs_main; | extern CCriticalSection cs_main; | ||||
inline double AllowFreeThreshold() { | |||||
return (144 * COIN) / (250 * SATOSHI); | |||||
} | |||||
inline bool AllowFree(double dPriority) { | |||||
// Large (in bytes) low-priority (new, small-coin) transactions need a fee. | |||||
return dPriority > AllowFreeThreshold(); | |||||
} | |||||
/** | /** | ||||
* Fake height value used in Coins to signify they are only in the memory | * Fake height value used in Coins to signify they are only in the memory | ||||
* pool(since 0.8) | * pool(since 0.8) | ||||
*/ | */ | ||||
static const uint32_t MEMPOOL_HEIGHT = 0x7FFFFFFF; | static const uint32_t MEMPOOL_HEIGHT = 0x7FFFFFFF; | ||||
struct LockPoints { | struct LockPoints { | ||||
// Will be set to the blockchain height and median time past values that | // Will be set to the blockchain height and median time past values that | ||||
▲ Show 20 Lines • Show All 959 Lines • Show Last 20 Lines |