<p>Currently the Satoshi client will simply pick the one it sees first. Since most mining pools use the Satoshi client as their connection to the Bitcoin network they will build on top of the first block that is propagated to their node. The block that is propagated the furthest is therefore most likely to be the winner, i.e., the block that is part of the longest blockchain.</p>

<p>As you probably may have guessed there are also other strategies to pick the block to build on top. For example it might be the case that a block with more transactions offers more transaction fees to be claimed, hence a purely selfish miner may replace an earlier block with a new block that offers a higher reward. By that time however the miner has already spent some time trying to build a new block on top of the block with fewer fees, and it might have found a successor already.</p>

<p>So in the end, miners always work on the block they saw first (mining on top of an old block is rarely advantageous), and if they are selfish they may chose to replace their current base for a newer block if it offers more fees. Such a higher value block might however not be propagated to all miners, but that's another story.</p>

CC BY-SA 3.0
2013-11-12T19:35:36.923Z
For further information on how blocks are propagated in the network see a recent publication: Information Propagation in the Bitcoin Network (http://www.tik.ee.ethz.ch/file/49318d3f56c1d525aabf7fda78b23fc0/P2P2013_041.pdf) (disclaimer: I am author of that paper).
cdecker
CC BY-SA 3.0
2013-11-12T19:33:59.087Z
2017-11-27T21:22:24.837Z
2017-11-27T21:22:24.837Z
cdecker
<p>If two blocks are found simultaneously (and this is not very uncommon -- see <a href="http://blockchain.info/orphaned-blocks" rel="nofollow">http://blockchain.info/orphaned-blocks</a> for some examples) nodes will consider whichever block they saw first to be the tip of the longest chain, and so miners will begin working on whichever block they saw first. The block that eventually becomes part of the longest chain is whichever block the next block is found on, that is, whichever block the miner who finds the next block sees first. The size of the blocks doesn't matter, besides the fact that a larger block will propagate more slowly, meaning that there's an increased chance of that block getting orphaned and not becoming part of the longest blockchain.</p>

CC BY-SA 3.0
2013-11-12T20:27:57.043Z
2013-11-12T20:27:57.043Z
Micha
<p>Because miners can choose which transaction will be added in block by themselves, so what if two miners broadcast two blocks almost at the same time, one is bigger(has more transactions), another is smaller. Which of the two blocks will be accepted?</p>

<blockchain>
two block are broadcast almost at same time, which will be accepted?
kakahong
# two block are broadcast almost at same time, which will be accepted?

(Asked by: username_0 on 2013-11-12)

Because miners can choose which transaction will be added in block by themselves, so what if two miners broadcast two blocks almost at the same time, one is bigger(has more transactions), another is smaller. Which of the two blocks will be accepted?

**Tags:** blockchain


---

## 2 answers

### Answer by username_1 on 2013-11-12. Score: 2 | Accepted answer

Currently the Satoshi client will simply pick the one it sees first. Since most mining pools use the Satoshi client as their connection to the Bitcoin network they will build on top of the first block that is propagated to their node. The block that is propagated the furthest is therefore most likely to be the winner, i.e., the block that is part of the longest blockchain.

As you probably may have guessed there are also other strategies to pick the block to build on top. For example it might be the case that a block with more transactions offers more transaction fees to be claimed, hence a purely selfish miner may replace an earlier block with a new block that offers a higher reward. By that time however the miner has already spent some time trying to build a new block on top of the block with fewer fees, and it might have found a successor already.

So in the end, miners always work on the block they saw first (mining on top of an old block is rarely advantageous), and if they are selfish they may chose to replace their current base for a newer block if it offers more fees. Such a higher value block might however not be propagated to all miners, but that's another story.

> **Comments:**
> **username_1**: For further information on how blocks are propagated in the network see a recent publication: Information Propagation in the Bitcoin Network (http://www.tik.ee.ethz.ch/file/49318d3f56c1d525aabf7fda78b23fc0/P2P2013_041.pdf) (disclaimer: I am author of that paper).  

---

### Answer by username_2 on 2013-11-12. Score: 2

If two blocks are found simultaneously (and this is not very uncommon -- see <http://blockchain.info/orphaned-blocks> for some examples) nodes will consider whichever block they saw first to be the tip of the longest chain, and so miners will begin working on whichever block they saw first. The block that eventually becomes part of the longest chain is whichever block the next block is found on, that is, whichever block the miner who finds the next block sees first. The size of the blocks doesn't matter, besides the fact that a larger block will propagate more slowly, meaning that there's an increased chance of that block getting orphaned and not becoming part of the longest blockchain.


---

