diff options
author | Cozz Lovan <cozzlovan@yahoo.com> | 2014-11-02 00:14:47 +0100 |
---|---|---|
committer | Cozz Lovan <cozzlovan@yahoo.com> | 2014-11-19 16:04:53 +0100 |
commit | c1c9d5b415fda7d1310c23857e57d98ac14c3063 (patch) | |
tree | 8d56d76ed4b19a0a5689a5ec5c866c489ed62c78 /src/txmempool.h | |
parent | e7876b297901a4b49daafc9ccd2b5c34a6214039 (diff) |
[Qt] Add Smartfee to GUI
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 0d3c8bba6a..e68b218154 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -15,11 +15,16 @@ class CAutoFile; +inline double AllowFreeThreshold() +{ + return COIN * 144 / 250; +} + inline bool AllowFree(double dPriority) { // Large (in bytes) low-priority (new, small-coin) transactions // need a fee. - return dPriority > COIN * 144 / 250; + return dPriority > AllowFreeThreshold(); } /** Fake height value used in CCoins to signify they are only in the memory pool (since 0.8) */ |