aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2013-01-23 20:24:10 -0500
committerGavin Andresen <[email protected]>2013-01-23 20:24:10 -0500
commit9c9f5c1303dff0c010e9e68ba7b5619330edfb68 (patch)
tree8efd80076c690e597ee8b07f8597e6846d0b3ebb /src/main.cpp
parentRemove IsFromMe() check in CTxMemPool::accept() (diff)
downloaddiscoin-9c9f5c1303dff0c010e9e68ba7b5619330edfb68.tar.xz
discoin-9c9f5c1303dff0c010e9e68ba7b5619330edfb68.zip
Let limitfreerelay=0 reject ALL free transactions
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f0e7ac137..e519332da 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -754,7 +754,7 @@ bool CTxMemPool::accept(CTransaction &tx, bool fCheckInputs, bool fLimitFree,
nLastTime = nNow;
// -limitfreerelay unit is thousand-bytes-per-minute
// At default rate it would take over a month to fill 1GB
- if (dFreeCount > GetArg("-limitfreerelay", 15)*10*1000)
+ if (dFreeCount >= GetArg("-limitfreerelay", 15)*10*1000)
return error("CTxMemPool::accept() : free transaction rejected by rate limiter");
if (fDebug)
printf("Rate limit dFreeCount: %g => %g\n", dFreeCount, dFreeCount+nSize);