6

From my understanding, a SHA256 hash is generated by a miner and if the hash is less than a specific value, it is passed to its peers. That said, It's possible for multiple hashes to be created at very close to the same time. If this happens, how is the "winner" determined? I see this has happened a lot (multiple orphaned blocks).

What can be done by the miner to see that their block wins the race, either honestly or through an attack? The protocol stipulates that the block shall be recognized by which ever was received first. Is it advantageous to set up peering with other miners?

1 Answer 1

9

When there's a fork, part of the network will mine to find the next block in one branch and part in the other branch. Whichever part finds the next block first will determine the winning branch.

A miner who finds a block will want to spread it widely and quickly. This makes sure there are many other miners who saw his block first, and thus a high probability that the next block will be found by one of those.

9
  • 1
    Is there anything a miner can do to send his block out more quickly? Or to disrupt other miners from sending out theirs?
    – Ben
    Apr 10, 2013 at 19:24
  • 1
    @Ben: Being connected to many nodes and having a fast internet connection could help. I don't know of ways to disrupt other miners. Apr 10, 2013 at 19:41
  • 3
    Can anyone explain the downvote? Apr 10, 2013 at 19:42
  • 1
    A block is first verified before it is relayed. So a block with fewer transactions will be verified sooner than a block with many transactions. However trying to limit that will cause fees to be missed, so there's an economic cost that offsets the economic gain. Apr 11, 2013 at 0:15
  • 1
    Theoretically, miners could form a coalition that would agree to mine after each other's found blocks, even if the block was found later, so long as the chain was the same length. I doubt it would be worth the trouble, but it would give members of the coalition a slightly greater chance of winning against a block found by a miner not in the coalition. Apr 11, 2013 at 3:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.