11

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

1

1 Answer 1

17

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.

7
  • This is a nice answer, but it should also mention the block size limit which seems to be relevant to the question. Commented Aug 13, 2014 at 13:45
  • Thanks, good suggestion Nate. I edited my comment to include a comment about the 1MB block size limit.
    – morsecoder
    Commented Aug 13, 2014 at 14:01
  • Thanks Stephen. Same broadcast transaction(ex. T1) can be processed by multiple miners at same time?
    – Tushar
    Commented Aug 14, 2014 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
    Commented Aug 14, 2014 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
    Commented Sep 26, 2014 at 18:10

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