From ecd37e134eb1690fb008229b4f93a3ef5c6c66f9 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Tue, 17 Feb 2015 07:04:42 -0700 Subject: [PATCH] Change darksend fee to 0.01DRK and charge in 1 in 10 sessions --- src/clientversion.h | 4 ++-- src/core.h | 2 +- src/darksend.cpp | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/clientversion.h b/src/clientversion.h index f69ba5f19..2d8a7f2f6 100644 --- a/src/clientversion.h +++ b/src/clientversion.h @@ -11,8 +11,8 @@ // These need to be macros, as version.cpp's and darkcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 11 -#define CLIENT_VERSION_REVISION 1 -#define CLIENT_VERSION_BUILD 25 +#define CLIENT_VERSION_REVISION 2 +#define CLIENT_VERSION_BUILD 0 diff --git a/src/core.h b/src/core.h index f98b4ffd9..14de8c081 100644 --- a/src/core.h +++ b/src/core.h @@ -15,7 +15,7 @@ #define START_MASTERNODE_PAYMENTS_TESTNET 1420837558 //Fri, 09 Jan 2015 21:05:58 GMT #define START_MASTERNODE_PAYMENTS 1403728576 //Wed, 25 Jun 2014 20:36:16 GMT -static const int64_t DARKSEND_COLLATERAL = (0.1*COIN); +static const int64_t DARKSEND_COLLATERAL = (0.01*COIN); static const int64_t DARKSEND_FEE = (0.0125*COIN); static const int64_t DARKSEND_POOL_MAX = (999.99*COIN); diff --git a/src/darksend.cpp b/src/darksend.cpp index a41f3d65b..30abb0323 100644 --- a/src/darksend.cpp +++ b/src/darksend.cpp @@ -807,7 +807,7 @@ void CDarkSendPool::ChargeRandomFees(){ int i = 0; BOOST_FOREACH(const CTransaction& txCollateral, vecSessionCollateral) { - int r = rand()%1000; + int r = rand()%100; /* Collateral Fee Charges: @@ -815,10 +815,10 @@ void CDarkSendPool::ChargeRandomFees(){ Being that DarkSend has "no fees" we need to have some kind of cost associated with using it to stop abuse. Otherwise it could serve as an attack vector and allow endless transaction that would bloat Darkcoin and make it unusable. To - stop these kinds of attacks 1 in 50 successful transactions are charged. This - adds up to a cost of 0.002DRK per transaction on average. + stop these kinds of attacks 1 in 10 successful transactions are charged. This + adds up to a cost of 0.001DRK per transaction on average. */ - if(r <= 20) + if(r <= 10) { LogPrintf("CDarkSendPool::ChargeRandomFees -- charging random fees. %u\n", i);