Let’s get into how theoretically someone could double spend Bitcoin. This is more about game theory and how it jives with mining strategies.
Exploring the Theoretical Side of Double Spending Bitcoin
16 replies 81 views
chr1swhal3Full Member
Posts: 60 · Reputation: 254
#2Jul 30, 2023, 11:29 PM
First off, if a transaction is confirmed and in the longest chain, mining the next blocks doesn’t invalidate it. It just gets pushed down further. Those unconfirmed transactions chill in mempool, not on the chain.
chrisomegaFull Member
Posts: 158 · Reputation: 631
#3Jul 31, 2023, 04:24 AM
Right, but if you’re mining those blocks, there’s zero incentive for other miners to join you in that double spend. A one-time huge fee isn’t likely to motivate them to build a stronger chain.
sigma_minerNewbie
Posts: 95 · Reputation: 8
#4Jul 31, 2023, 05:23 AM
Exactly, if miners see a conflicting transaction, they’ll reject it. Even if someone tries to pull a 51% attack, it’s super costly and not worth it for most mining pools. They’d rather stay honest.
diamondhandsHero Member
Posts: 200 · Reputation: 2112
#5Jul 31, 2023, 07:47 AM
By the way, this probably belongs in the tech section, not economics. Just saying.
I think you’re missing the point here. If transaction A is in the blockchain already, it complicates any attempt to double spend it.
Manipulating the chain gets tougher the deeper you go. It’s almost impossible to pull off with over 10 confirmations.
diamondhandsHero Member
Posts: 200 · Reputation: 2112
#8Jul 31, 2023, 03:12 PM
Testing this on testnet is a good idea. I successfully sent a massive fee once, and no one reorged my block. Curious how much you can push without reorgs.
Once miners see a confirmed transaction, they’ll reject any attempts at a second one. You can’t just broadcast a conflicting transaction and expect it to fly.
I’m guessing OP meant double spending after a confirmation. To pull that off requires the same miner to hit the next block, and they’d need to be in on the plan.
wizard_2016Full Member
Posts: 127 · Reputation: 575
#11Aug 4, 2023, 07:49 AM
You could use "invalidateblock" but that’s easier said than done. Mining two in a row is a challenge.
Convincing a private miner might be simpler than trying with a public pool. As soon as suspicion hits, hash power will switch pools, making it harder.
For it to make sense economically, the amount needs to be huge. No one’s accepting big transactions with just one confirmation.
diamondhandsHero Member
Posts: 200 · Reputation: 2112
#14Aug 4, 2023, 04:40 PM
Sure, your attack could be foiled by waiting for confirmations, but you’re right that if the miner thinks they’ll get a fat fee for a reorg, they might try it.
ben.matrixNewbie
Posts: 3523 · Reputation: 35
#15Aug 5, 2023, 05:24 PM
What if a miner attempts to double spend but can’t get a longer chain fast enough? That’s a real concern.
ben.matrixNewbie
Posts: 3523 · Reputation: 35
#16Aug 6, 2023, 01:35 AM
I read you can cancel a transaction with one confirmation using certain services. Is that legit? Seems sketchy for miners to help a double spend.
ben.matrixNewbie
Posts: 3523 · Reputation: 35
#17Aug 6, 2023, 05:25 AM
Seems unlikely, but you can track past block activity. If something shady happened, we’d have seen some block hash at those points.
Related topics
- Tips to Avoid Double Spending after Decoding Keys 19
- How does the government actually seize Bitcoin? 20
- Beginner's Bitcoin Questions That Sound Dumb but Aren't 6
- Learning Before You Invest: Why Knowledge is key in Bitcoin 20
- Developing a Beginner's Learning Path for Bitcoin 20
- Managing Fear as a Bitcoin Investor 21