Bitcoin Forum
May 14, 2024, 08:42:42 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How does the network resolve conflicting transactions?  (Read 779 times)
Krellan (OP)
Member
**
Offline Offline

Activity: 106
Merit: 10


View Profile
April 10, 2013, 08:49:02 PM
 #1

I'm curious, how does the Bitcoin network resolve conflicting transactions?  I looked for this in a FAQ, but couldn't find details on exactly how the network chooses which of two choices to believe, when given conflicting choices.

This could either be done intentionally (flooding others in an effort to induce lag, hacking the Bitcoin client to disable consistency checks, generating false confirmations, intentional double-spending, connecting a large network of your hacked Bitcoin clients in an effort to steal traffic from the existing network, any other ways) or accidentally (connecting to the Test network instead of the real network, running offline for a while then reconnecting later).

Which determines the winner?  How does the network know to discard unwanted transactions, provided that those unwanted transactions are not totaling enough to constitute a 51% attack?

It makes sense that Bitcoin would still be vulnerable to a 51% attack.  A corporation is vulnerable (convince 51% of shareholders to vote your way, or just buy 51% of all shares, and you can appoint yourself CEO and do whatever you want), and a democratic government is vulnerable (convince 51% of voters to vote for you, and you are President).  Evidently that's pretty much how the world works, nothing can really be done about that Smiley

Josh

1JUZr4TZ5zuB4WdEv4mrhZMaM7yttpJvLG Smiley
1715676162
Hero Member
*
Offline Offline

Posts: 1715676162

View Profile Personal Message (Offline)

Ignore
1715676162
Reply with quote  #2

1715676162
Report to moderator
1715676162
Hero Member
*
Offline Offline

Posts: 1715676162

View Profile Personal Message (Offline)

Ignore
1715676162
Reply with quote  #2

1715676162
Report to moderator
1715676162
Hero Member
*
Offline Offline

Posts: 1715676162

View Profile Personal Message (Offline)

Ignore
1715676162
Reply with quote  #2

1715676162
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715676162
Hero Member
*
Offline Offline

Posts: 1715676162

View Profile Personal Message (Offline)

Ignore
1715676162
Reply with quote  #2

1715676162
Report to moderator
Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
April 10, 2013, 09:07:33 PM
 #2

Basically, only one of the conflicting transactions can be included in a block. If a miner sees more than one of the transactions before one is included in a block, he could theoretically select which one he wants to try including in the block he is attempting to make (in practice, they select the one they saw first). Once a block is produced, everyone else will consider that transaction to be the only true transaction. If more than one block is produced at the same time, a similar process happens: the next block after that decides which block was the true block. This process continues infinitely, eventually causing everyone to come to a consensus about the history of transactions.

You might find it helpful to read satoshi's explanation when someone asked him this same question (it's somewhere in this thread):
http://www.mail-archive.com/cryptography@metzdowd.com/msg09975.html

Krellan (OP)
Member
**
Offline Offline

Activity: 106
Merit: 10


View Profile
April 11, 2013, 07:15:55 AM
 #3

Nice, thanks for pointing me in the right direction!

Josh

1JUZr4TZ5zuB4WdEv4mrhZMaM7yttpJvLG Smiley
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!