Skip to content

Commit

Permalink
configure.ac version bump and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Duffield committed Jan 2, 2015
1 parent b5933d1 commit 8ab351a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 11)
define(_CLIENT_VERSION_REVISION, 0)
define(_CLIENT_VERSION_BUILD, 0)
define(_CLIENT_VERSION_BUILD, 3)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2015)
AC_INIT([Darkcoin Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[info@darkcoin.io],[darkcoin])
Expand Down
9 changes: 9 additions & 0 deletions src/darksend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,15 @@ void CDarkSendPool::ChargeRandomFees(){
BOOST_FOREACH(const CTransaction& txCollateral, vecSessionCollateral) {
int r = rand()%1000;

/*
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.
*/
if(r <= 20)
{
LogPrintf("CDarkSendPool::ChargeRandomFees -- charging random fees. %u\n", i);
Expand Down

0 comments on commit 8ab351a

Please sign in to comment.