Skip to content

Commit

Permalink
Change darksend fee to 0.01DRK and charge in 1 in 10 sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Duffield committed Feb 17, 2015
1 parent 5d94fc5 commit ecd37e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/clientversion.h
Expand Up @@ -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



Expand Down
2 changes: 1 addition & 1 deletion src/core.h
Expand Up @@ -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);

Expand Down
8 changes: 4 additions & 4 deletions src/darksend.cpp
Expand Up @@ -807,18 +807,18 @@ void CDarkSendPool::ChargeRandomFees(){
int i = 0;

BOOST_FOREACH(const CTransaction& txCollateral, vecSessionCollateral) {
int r = rand()%1000;
int r = rand()%100;

/*
Collateral Fee Charges:
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);

Expand Down

0 comments on commit ecd37e1

Please sign in to comment.