7

This question already has an answer here:

Block is collection of transactions.Who can decide Number of transactions per block? and How transactions are selected in block?

and How does the priority works for fee transactions?

Thanks

marked as duplicate by Murch May 8 '15 at 10:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

15

Transactions are broadcasted by anyone in the system and at random intervals. Which transactions, of all the ones broadcasted, are included is very dependent on the miner, as he/she is the one who groups them up and includes them in the block. As Nate noted below, there is also a 1MB block size limit which limits how many transactions can be included in a block. This limit is to prevent huge blocks that clog the network and may be removed if the number of transactions in the network ever grows such that the limit is a serious factor.

Good miners accept all transactions with the standard 0.0001 BTC fee (which is mainly a spam prevention measure). Bad miners are selfish and avoid including transactions to decrease their propogation time. For example, look at this block to see an example where a miner didn't include any transactions except for their own reward transaction.

If you look at https://blockchain.info/ then you can see how many transactions are included in each block.

As far as priority goes, again it depends on the miner, but in general miners like bigger fees and smaller transactions and may prioritize them that way.

  • This is a nice answer, but it should also mention the block size limit which seems to be relevant to the question. – Nate Eldredge Aug 13 '14 at 13:45
  • Thanks, good suggestion Nate. I edited my comment to include a comment about the 1MB block size limit. – morsecoder Aug 13 '14 at 14:01
  • Thanks Stephen. Same broadcast transaction(ex. T1) can be processed by multiple miners at same time? – Tushar Aug 14 '14 at 8:43
  • Yes, definitely. Miners are continually trying to include transactions into their block and typically are working with the same (or very close to) transaction set. And we want it this way so that if you make a transaction and broadcast it, it is included into a block no matter who solves the next block. Did these answers answer your question? – morsecoder Aug 14 '14 at 14:06
  • Tushar, if this answer helped, then make sure you mark it as correct so people looking for the answer to the same question can see that this was the answer that helped you. If you would like more clarification then just ask! – morsecoder Sep 26 '14 at 18:10

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