From 9c9f5c1303dff0c010e9e68ba7b5619330edfb68 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Wed, 23 Jan 2013 20:24:10 -0500 Subject: Let limitfreerelay=0 reject ALL free transactions --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f0e7ac1371..e519332da6 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); -- cgit v1.2.3