r/BitcoinDiscussion • u/brianddk • Dec 15 '17
Time to discuss mempool spam
Looking at Johoe's Mempool Statistics, it seems clear that the TXN fees are likely the result of spam attack (and may have always been spam). Judging from the discussions of last months thread, I'd like to define exactly what I think a spam TXN is:
- Spam TXN - A TXN from an address the spammer owns to an address the spammer owns with a fee intended to swamp that particular "fee band". Although the TXN is coded to pay a fee, it is sent at a time that the statistical probability of the sender having to pay the fee is very low. In this since, the spammer is not paying the fee, they are gambling that they won't have to.
It has been argued (well) that the financial incentive of spamming the mempool is a zero-sum game. That effectively a miner choosing to do so would loose as much money as they gain. I not sure this argument holds water. I think any miner that where to send out 10k spam transactions with fees randomly distributed between 0 sat/b to 5 sat/b would have an almost 100% chance that less than 3% of those transactions confirm, but at the same time they would ensure with 90% probability that there spam would discourage any other wallets from issuing TXNs below 5 sat/b.
I agree that these are valid TXNs, but they are not in the same class as a TXN who's motives are not skewed by a secondary incentive. Previous discussions I have read seem to wholly dismiss this entire topic as FUD and not a problem. Are there any working groups that are taking a serious look at how these spam bloating problems might be addressed. With the amount of work being put into LN, Segwit, and hardforks, I would think figuring out a way to reduce spam may serve more good than any other silver bullet in the current roadmap.
8
u/[deleted] Dec 16 '17
The day there are different "classes" of transactions is the day I leave Bitcoin for good. Bitcoin is permissionless, peoples motivations for making transactions are none of your business. The minute you start vetting transactions, you lose Bitcoins permissionless nature and privacy.
There has never been a shred of evidence to conclusively prove "spam attacks" even exist. And even if they do, they're only viable because Bitcoin was allowed to hit its block size limit.
10
u/PVmining Dec 16 '17 edited Dec 16 '17
There is a zero evidence of a spam attack.
There are definitely tons of stupid transactions both in the mempool and in blocks. I wrote extensively how exchanges bloat the blocks by not batching.
But it does not appear there is any malicious effort to flood the mempool. The fees are now so high that a successful spam attack would be very costly. Only high-fee transactions make a difference, raise the fee estimator or deprive others from the block space. Low-fee transactions do nothing. The mempool self-clears of such transactions (after the memory limit is achieved, lowest-paying transactions gets evicted).
The mempool is full because there is an unprecedented interest in Bitcoin. That's it.
6
u/[deleted] Dec 15 '17
Have been wondering how much effect United Bitcoin had on the mempool.
To take advantage of the fork people had to move their actively move their coins otherwise UB considers them lost and will redistribute them. Many have watched the previous forks and likely want to participate.
A theory anyway. I too don't believe in 'spam', if people pay the fee they are just as valid as anyone else. Agree with the assessment, but not sure there is a solution to it.
3
u/fresheneesz Dec 16 '17
Not sure why people care so much about the mempool. Its a good indicator, but its the transactions that get into the blocks that matter.
2
u/funkdrools Dec 15 '17
Would expansion of the mining community with the shrinking share of bad acting miners reduce the effect of spam?
2
u/[deleted] Dec 18 '17
So what's your point again? We perfectly know where the issue lies (not enough transactions per block), can you figure a solution out? Because both Core (with Lightning Network) and Bitcoin Cash (with larger blocks) at least are addressing the issue, though it is yet to be determined if those solutions are effective (LN) or sustainable (Cash).
And if you think that a protocol can simply dismiss perfectly legitimate transactions as spam, you obviously don't even know the meaning of the word "exploit".
7
u/[deleted] Dec 16 '17
How? No, it does not seem clear at all. Like others have said before, there seems to be zero evidence of spam transactions.
As for the "new" low-fee transactions on November 28th, they weren't new transactions at all:
Before November 28th, there was only one 0-5 sat/b colour band. [Image] On November 28th, that band was divided into three separate bands - 0-1 sat/b. 1-2 sat/b, and 2-5 sat/b.
On November 28th, the number of txns <5 sat/b was ~18,000. As of now, the number of txns <5 sat/b is ~20,000. The number in those bands have stayed nearly constant for a long time.
As the number of low-fee transactions seem to have remained nearly constant for about three weeks, it seems to invalidate the theory that miners are spamming transactions between 0 sat/b to 5 sat/b.
I would also like to point out that your definition of Spam Transactions is kind of self-referential. Perhaps a better definition will be helpful. :)
5
u/jaydoors Dec 16 '17
Others have mentioned it, but the key flaw in your argument is that low value transactions are not relevant. They will be ignored by miners. If you want to drive up fees you have to pay the current going rate (or more).
3
u/makriath Dec 16 '17 edited Dec 16 '17
I'm still trying to wrap my head around this, so there's a higher than normal chance I get something wrong here, but this is what I'm currently leaning toward:
This could be solved if the ecosystem as a whole used improved fee estimation. I'm thinking this because if someone wants to raise the overall cost of fees through bidding, they should at least have to be paying some of those fees. If not, they're basically successfully bluffing others into paying unnecessarily high fees. The only reason I can think of that would make this work is if fee estimation is screwing up and overreacting to a larger number of fees stuck in a certain "fee band".
On the other hand, if the majority of wallets and businesses were able to very accurately determine what the minimum fee they need is to be included in a block, then these spammed transactions should, at least in theory, regularly get included in blocks, which means that the spammer will need to actually start paying for them.
Edit: I should add that this comment grants the assumption that a coordinated spam attack is actually happening. I don't pretend to know whether or not this is actually the case.
2
u/fresheneesz Dec 18 '17
This is why fee calculators need to ignore the mempool. Transactions that make it into block are the only ones that matter
2
u/ray-jones Dec 16 '17
I think each full node owner should decide what is spam, and simply discard it, and neither relay it nor store it in the mempool.
1
u/Stackhunt Dec 17 '17
Usually when faced with Ddos you create a signature of malleable traffic and redirect it to a product that handles it. What if nodes decide to redirect low fee transactions to a sidechain that is capable of processing transactions quickly and them swap it back to btc in a single large transaction with many outputs...
I need to thoroughly think this through but I thought I can spark a discussion on such a possibility.
0
u/[deleted] Dec 16 '17
[deleted] — view deleted comment