Bitcoin Forum
May 21, 2024, 11:11:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why no minimum # of TX in a block?  (Read 1140 times)
prophetx (OP)
Legendary
*
Offline Offline

Activity: 1666
Merit: 1010


he who has the gold makes the rules


View Profile WWW
July 06, 2014, 01:28:47 AM
 #1

Now that bitcoin gets a fair amount of use, why isn't their any logic built in to qualify each block not only with a nonce but with a minimum # of transactions?

for example check this out, it happened to be mined 1 minute after the previous block

https://blockchain.info/block-index/448193/00000000000000003108adad355650e57f214587c287cc5b0e9bb6da482b3b77

I know this would encourage different behavior like miners keeping some reserve transactions but there must be enough no mining fee tx floating around to meet that need 

Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
July 06, 2014, 02:25:58 AM
 #2

The number of transactions in a block is determined by the max block size, which in turn is determined by the size of transactions. Also, the bigger the fee, the higher the chance the tx gets included in a block. But some miners might decide, hey, I want only high fee transactions, in which case max block size may never get hit, and only say 50 TXes get included in a block.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
prophetx (OP)
Legendary
*
Offline Offline

Activity: 1666
Merit: 1010


he who has the gold makes the rules


View Profile WWW
July 06, 2014, 03:01:52 AM
 #3

The number of transactions in a block is determined by the max block size, which in turn is determined by the size of transactions. Also, the bigger the fee, the higher the chance the tx gets included in a block. But some miners might decide, hey, I want only high fee transactions, in which case max block size may never get hit, and only say 50 TXes get included in a block.

yes i know that, however that block which I linked has no tx other than the network subsidy
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
July 06, 2014, 03:23:41 AM
 #4

What's preventing miners from adding a bunch of filler transactions to satisfy the quota?

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8421



View Profile WWW
July 06, 2014, 03:29:09 AM
 #5

What's preventing miners from adding a bunch of filler transactions to satisfy the quota?
Nothing, which is why it would be pointless.

for example check this out, it happened to be mined 1 minute after the previous block
It was probably mined seconds after the prior blocks. The timestamps are only approximate.
prophetx (OP)
Legendary
*
Offline Offline

Activity: 1666
Merit: 1010


he who has the gold makes the rules


View Profile WWW
July 06, 2014, 03:30:42 AM
 #6

What's preventing miners from adding a bunch of filler transactions to satisfy the quota?

good point
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1011

Reverse engineer from time to time


View Profile
July 06, 2014, 03:51:12 AM
 #7

The number of transactions in a block is determined by the max block size, which in turn is determined by the size of transactions. Also, the bigger the fee, the higher the chance the tx gets included in a block. But some miners might decide, hey, I want only high fee transactions, in which case max block size may never get hit, and only say 50 TXes get included in a block.

yes i know that, however that block which I linked has no tx other than the network subsidy
The reason for this is, because the block was found so soon after the previous, the mempool of the miner was empty at the time, i.e it didn't choose to not add TXes, it just happened.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Quokka
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
July 06, 2014, 04:04:17 AM
 #8

Now that bitcoin gets a fair amount of use, why isn't their any logic built in to qualify each block not only with a nonce but with a minimum # of transactions?

for example check this out, it happened to be mined 1 minute after the previous block

https://blockchain.info/block-index/448193/00000000000000003108adad355650e57f214587c287cc5b0e9bb6da482b3b77

I know this would encourage different behavior like miners keeping some reserve transactions but there must be enough no mining fee tx floating around to meet that need  



The failsafe I guess you could say is the fact that miners benefit from including transactions in a block as that means they get paid the fee (Assuming there is one). So fortunately there shouldn't be a situation where miners are deliberately mining transactionless blocks. Occasionally it happens by pure chance but that's just the random nature of block generation.

Of course I suppose you could argue that a miner might mine transactionless blocks in order to cut down on the block size for faster propagation, but that'd seem pretty counter productive.
Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
July 06, 2014, 08:01:32 AM
 #9

So fortunately there shouldn't be a situation where miners are deliberately mining transactionless blocks. Occasionally it happens by pure chance but that's just the random nature of block generation.

Of course I suppose you could argue that a miner might mine transactionless blocks in order to cut down on the block size for faster propagation, but that'd seem pretty counter productive.

Except that it isn't necessarily counterproductive to mine empty blocks to get faster propagation. The propagation time depends on the number of transactions in the block, so a miner could make an estimate of the odds of a block being orphaned due to slow propagation and weigh the potential losses of an orphaned block against the certain losses of not including fee-paying transactions.

With fees still being a very small part of the block reward, the answer may not be obvious.
Quokka
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
July 06, 2014, 04:51:43 PM
Last edit: July 06, 2014, 06:54:23 PM by Quokka
 #10


Except that it isn't necessarily counterproductive to mine empty blocks to get faster propagation. The propagation time depends on the number of transactions in the block, so a miner could make an estimate of the odds of a block being orphaned due to slow propagation and weigh the potential losses of an orphaned block against the certain losses of not including fee-paying transactions.

With fees still being a very small part of the block reward, the answer may not be obvious.

True, let's look at the numbers on that. According to Blockchain.info's orphan block graph (And I qualify this by saying that I don't know how accurate this graph is) you could pretty reasonably estimate that the odds of a block being orphaned is close to 2% (144 blocks a day, around 2 or 3 are orphaned per day). So as long as transaction fees are worth at least 1/50 of the block reward there shouldn't be any significant motivation to mine empty blocks. Currently that would mean .5 BTC worth of transaction fees per block, and as you said currently the fee per blocks is generally much smaller than that.

Is my math right on this?

EDIT: I just realized that I forgot to account for the fact that sending an empty block does not completely remove the possibility of that block being orphaned. Unfortunately I don't know exactly how one would calculate the odds of a block containing transactions being orphaned vs. the odds of an empty block being orphaned.
PolarPoint
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


View Profile
July 06, 2014, 04:58:09 PM
 #11

It would be better for the bitcoin network if we introduce a rule to require a block to contain a minimum number of transactions. If all miners decide to "strike" and mine without any transactions, the bitcoin network will be at a stand still.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8421



View Profile WWW
July 07, 2014, 12:43:54 PM
 #12

11 posts in and we've gone full circle already!
He's probably just blindly posting without reading any of the messages in order to get his signature spam more widely distributed. Tongue

I'm going to lock this thread since it seems like the question was asked and answered and isn't making any more progress.
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!