public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
* [Bitcoin-development] Question about dust spam rule
@ 2011-06-14 19:45 jan
  0 siblings, 0 replies; only message in thread
From: jan @ 2011-06-14 19:45 UTC (permalink / raw)
  To: bitcoin-development

Hi there!

As can been seen from this code block

  // 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;

a fee is required as soon as any output is less than CENT.

I was wondering: would it be possible to loosen this rule to something
like "if _all_ outputs are less than CENT" or maybe "if more than 50% of
all outputs are less than CENT"?

The reason is, that I'm currently working on a project, where I would
like to take a small cut on transactions passing through (probably not
an usual requirement) and a lot of those small cuts would probably bump
into this rule.

Isn't this rule mainly meant to prevent lots of transactions with small
coins? So "all small coins" should work as well as "any small coins" or
am I missing something? (things like creating large transactions should
already be caught by other rules, right?)

Regards!
Jan



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-14 19:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-14 19:45 [Bitcoin-development] Question about dust spam rule jan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox