Edit2: i'd like to anounce 1,000 nmc for an - this problem-solving - update of namecoin, maybe given to a team-leader, who distributes this to the participating developers...
i think i will not be the only one with such interests
That's great. Here's the spam prrofing code for devcoin:
http://devtome.org/wiki/index.php?title=Devcoin#Spam_Proofingand pasted below. Namecoin has a different generation rate and value, but they changes roughly cancel out so you could use the same parameters as devcoin.
===Spam Proofing===
To make spam unprofitable, the following changes were made:
*1) Increase the MIN_TX_FEE
*2) Set MIN_RELAY_TX_FEE = MIN_TX_FEE
*3) Added an extra fee to sendMany for each tiny sub transaction
*4) Eliminated free transactions
The MIN_TX_FEE and MIN_RELAY_TX_FEE changes are listed in the Generation Rate section and pasted below:
<code>
//static const int64 MIN_TX_FEE = 50000;
static const int64 MIN_TX_FEE = 500000000;
//static const int64 MIN_RELAY_TX_FEE = 10000;
static const int64 MIN_RELAY_TX_FEE = MIN_TX_FEE;
<code>
To add the extra fee and eliminate free transactions, the following change was made in GetMinFee in main.h:
<code>
// if (fAllowFree)
// {
// if (nBlockSize == 1)
// {
// // Transactions under 10K are free
// // (about 4500bc if made of 50bc inputs)
// if (nBytes < 10000)
// nMinFee = 0;
// }
// else
// {
// // Free transaction area
// if (nNewBlockSize < 27000)
// nMinFee = 0;
// }
// }
// // To limit dust spam, require MIN_TX_FEE/MIN_RELAY_TX_FEE if any output is less than 0.01
// if (nMinFee < nBaseFee)
// BOOST_FOREACH(const CTxOut& txout, vout)
// if (txout.nValue < CENT)
// nMinFee = nBaseFee;
// To limit dust spam, require an additional one tenth of MIN_TX_FEE/MIN_RELAY_TX_FEE for each output
BOOST_FOREACH(const CTxOut& txout, vout)
nMinFee += nBaseFee / 10;
</code>