From def3c9e53b20815c8eef0aef7c9315cdd4a889c6 Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Thu, 28 Nov 2013 16:00:09 -1000 Subject: [PATCH] Litecoin: Reduce Dust thresholds by 10x DUST_SOFT_LIMIT of 0.001 means a penalty of an additional mintxfee is charged for each output smaller than 0.001. This is a key behavioral disincentive in Litecoin's anti-spam design. DUST_HARD_LIMIT of 0.00001 means inputs smaller than this size are ignored by the wallet, not available to coin selection and effectively do not exist. This too discourages spam. --- src/main.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.h b/src/main.h index 76ff622fe..62b2ff277 100644 --- a/src/main.h +++ b/src/main.h @@ -50,9 +50,9 @@ static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000; // 1 MiB /** Fake height value used in CCoins to signify they are only in the memory pool (since 0.8) */ static const unsigned int MEMPOOL_HEIGHT = 0x7FFFFFFF; /** Dust Soft Limit, allowed with additional fee per output */ -static const int64 DUST_SOFT_LIMIT = 1000000; // 0.01 LTC +static const int64 DUST_SOFT_LIMIT = 100000; // 0.001 LTC /** Dust Hard Limit, ignored as wallet inputs (mininput default) */ -static const int64 DUST_HARD_LIMIT = 10000; // 0.0001 LTC mininput +static const int64 DUST_HARD_LIMIT = 1000; // 0.00001 LTC mininput /** No amount larger than this (in satoshi) is valid */ static const int64 MAX_MONEY = 84000000 * COIN; inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }