Exploring the Theoretical Side of Double Spending Bitcoin

16 replies 81 views
R0gueForkSenior Member
Posts: 3 · Reputation: 1309
#1Jul 30, 2023, 08:42 PM
Let’s get into how theoretically someone could double spend Bitcoin. This is more about game theory and how it jives with mining strategies.
6 Reply Quote Share
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.
0 Reply Quote Share
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.
2 Reply Quote Share
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.
1 Reply Quote Share
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.
4 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#6Jul 31, 2023, 07:55 AM
I think you’re missing the point here. If transaction A is in the blockchain already, it complicates any attempt to double spend it.
3 Reply Quote Share
0xNodeMember
Posts: 671 · Reputation: 80
#7Jul 31, 2023, 12:00 PM
Manipulating the chain gets tougher the deeper you go. It’s almost impossible to pull off with over 10 confirmations.
4 Reply Quote Share
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.
2 Reply Quote Share
0xNodeMember
Posts: 671 · Reputation: 80
#9Aug 2, 2023, 04:24 AM
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.
1 Reply Quote Share
block777Member
Posts: 33 · Reputation: 214
#10Aug 4, 2023, 07:13 AM
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.
6 Reply Quote Share
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.
2 Reply Quote Share
block777Member
Posts: 33 · Reputation: 214
#12Aug 4, 2023, 09:02 AM
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.
1 Reply Quote Share
chain2011Senior Member
Posts: 49 · Reputation: 842
#13Aug 4, 2023, 12:30 PM
For it to make sense economically, the amount needs to be huge. No one’s accepting big transactions with just one confirmation.
4 Reply Quote Share
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.
0 Reply Quote Share
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.
2 Reply Quote Share
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.
0 Reply Quote Share
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.
0 Reply Quote Share

Related topics