Author

Topic: Empty transaction blocks (Read 2473 times)

legendary
Activity: 2576
Merit: 1087
March 11, 2016, 03:37:01 AM
#22
I've read some long discussions about the pros and cons of miner's publishing zero transaction blocks (as 'some' are doing now).

The TL;DR is that:

Let's say the blocksize was 10MB and it took 10 minutes to solve a block. Miners would work on solving it but a large zero-miner would quickly solve a zero sized block. They would them publish it to their "large miner friends" who would start solving a next block.

Whoever solved the 10MB block would likely get their block orphaned if the empty block + next block was published immediately after the block was solved/broadcast. And whoever was working on the longer chain would be already working on the next empty block + next block.

In a way, publishing empty blocks seems to create an artificial cap on blocksize, does it not? As the blocksize gets larger and it takes longer to solve blocks, publishing empty transactions can cause more and more transactions to be orphaned.

Additionally, some (many?) people support miners publishing empty blocks. There seems some back and forth whether this should be allowed at all. As it is part of the protocol, disallowing it would seem about impossible at this point in time.

Doesn't this basically put a blocksize limit in the hands of the large miners? And isn't this just a way for the largest miners to gain an advantage over the others? Or is there some reason this is a "good thing"?


There are at least two ways that empty (1txn) blocks can be used.

The first is concerned with reducing idle time. If a block is solved and broadcast to the network then as a miner you are first made aware of the block header. This block header is all you need to start mining the next block. The rest of the block may take some time to propagate and will also take further time for you to validate and adjust your mempool. There is a chance that during this time you may find a block. Given the block reward is high and fees are low the most profitable thing to do is publish the block immediately. As you have not yet validated the previous block you cannot know which transactions to include from the mempool, so the only transaction you can include are ones that you know nobody else knows about - typically the coinbase transaction.

The second us a natural disincentive for miners to produce blocks that are too expensive to propagate/validate. If such a block  is produced then a miner may decide that validating this block is taking too long and instead decide that they could make more profit by mining a smaller sibiling block. This block would also be seen by miners and they could decide whether to continue validating the "expensive" block or instead mine on top of the easy to validate block. These behaviours form a natural equilibrium in block size obviating the need for any artificial limit.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
March 10, 2016, 11:56:02 PM
#21
I just do not understand this empty block thing.  What is it they are doing to cause this specifically?

From what I can gather their miners begin work on the next block before the pool has decided on the txs (so they are broadcasting the block header as soon as they see a new block seemingly without even validating the new block much which is what led to the block version fork).

Presumably they then later send out the block header for the block that actually does have the txs included (and perhaps after further validation of the new block although I am only speculating about that) but if a miner had already found a solution with the previous (empty apart from coinbase) header then they will publish that (thus typically these blocks are found very quickly).

If indeed this is how it is working then I guess it isn't really having as big an effect upon TPS as otherwise it might.
sr. member
Activity: 481
Merit: 264
BCMonster.com BTC ZEN HUSH KMD ARRR VRSC ACH RFOX
March 10, 2016, 11:50:18 PM
#20

I've been urging people to stop mining on pools that produce empty blocks and move.  Yes, I run my own pool and would love to see more miners on it.  However, it is more important to have miners stop pointing their hash to the bad-for-bitcoin pools, and there are plenty of choices out there, including, but certainly not limited to my own.

I just do not understand this empty block thing.  What is it they are doing to cause this specifically?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
March 10, 2016, 03:18:21 PM
#19
I wonder why -ck didn't merge this with my empty block thread. 
This thread was moved from another non-mining part of the forum, and moderators dont have a merge function. Maybe in ten years whenever the new forum software gets finished we'll have the option.. but this is all offtopic banter.
legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
March 10, 2016, 10:34:19 AM
#18
I wonder why -ck didn't merge this with my empty block thread.  At any rate, you ask very pertinent questions Preclus.  We recently had a very large backlog of unconfirmed transactions floating around.  People flooded to the forum asking why their transactions were not getting confirmed.  There was plenty of bad press produced claiming the bitcoin network was doomed.  Claims were made that block size absolutely needed to be increased immediately.

If you read my empty block thread you'll also notice how many single transaction (only the coinbase) blocks are added to the chain.  During that time we were experiencing a backlog of transactions, had AntPool produced only half as many empty blocks as they did, there would not have been a backlog.

So, does this have an effect on transactions per second?  Absolutely - at least from a throughput point of view.  Let's assume that in order to maintain parity, I need to consume a throughput of 1500 transactions per block.  Obviously if one or more actors are cheating and not putting any transactions in their blocks, then the overall throughput rate goes down and transactions become backlogged.

I've been urging people to stop mining on pools that produce empty blocks and move.  Yes, I run my own pool and would love to see more miners on it.  However, it is more important to have miners stop pointing their hash to the bad-for-bitcoin pools, and there are plenty of choices out there, including, but certainly not limited to my own.
sr. member
Activity: 463
Merit: 309
March 09, 2016, 11:17:16 AM
#17

401582 14:50:11 / 401583 14:50:36 = 21 Seconds
401556 10:03:58 / 401557 10:04:39 = 41 seconds
401538 07:35:40 / 401539 07:36:39 = 59 seconds
401511 02:48:24 / 401512 02:48:52 = 28 Seconds

I will say I stand corrected on not seeing empty blocks but all the above were no where close to the estimated 10 minutes per block that the ecosystem that bitcoin is based on.  I do agree some more diversity as to the pool would be good for bitcoin.  After all I have a pool and am running core 0.12.0 over classic or the other options.  People are never going to leave the big pool though and loose the constant dust that they are getting. 
401870 - 1m29s Full block
401873 - ~3mins Full Block
401879 - ~5 mins Full Block
401882 - ~2mins Full Block

There are other short blocks that were filled if you look for them.
sr. member
Activity: 481
Merit: 264
BCMonster.com BTC ZEN HUSH KMD ARRR VRSC ACH RFOX
March 08, 2016, 08:54:37 AM
#16

401582 14:50:11 / 401583 14:50:36 = 21 Seconds
401556 10:03:58 / 401557 10:04:39 = 41 seconds
401538 07:35:40 / 401539 07:36:39 = 59 seconds
401511 02:48:24 / 401512 02:48:52 = 28 Seconds

I will say I stand corrected on not seeing empty blocks but all the above were no where close to the estimated 10 minutes per block that the ecosystem that bitcoin is based on.  I do agree some more diversity as to the pool would be good for bitcoin.  After all I have a pool and am running core 0.12.0 over classic or the other options.  People are never going to leave the big pool though and loose the constant dust that they are getting. 
staff
Activity: 3458
Merit: 6793
Just writing some code
March 08, 2016, 08:10:16 AM
#15
No. The size of a block does not matter in how quickly the block is solved. A block with no transactions and a full block both have the same probability of being the solution.

The size of the block doesn't matter but you can start solving for an empty block before you can start solving for a block with transactions.

Described in the thread referenced above:

Why do some pools do that? Is there an advantage?

Time.  Get the details of the last block mined, immediately start mining for the next - at this point 'empty' - block (and your chance at the block subsidy).  Then while things are busily mining away, build new headers that do include transactions, and at the next opportune moment start mining on that. It's just a small sliver of time, but against an otherwise equal opponent, collecting transactions by default would be a losing strategy in the long run.

Not necessarily. Look at ckpool. They do full verification of blocks and produce very few empty blocks and have few orphans. With a dedicated server and decent setup and software, the time to verify a block to begin mining on it is negligible.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
March 08, 2016, 04:46:09 AM
#14
Modern Bitcoin mining is very different than years ago.


All pools use SPV mining. This means miner believes a new block header is valid and mine upon it.

This reduces orphan risk. During the period a whole block transactions are buffered, the receiver mines an empty block.


Why empty block? To avoid accidental double spend /double confirm. Double spend could cause the miner to lose funds from the reward due to block becoming invalid.


The block size is not as relevant anymore, but orphan risk is still present during the one second or so latency window after mining a block.
Horse shit. Only Chinese pools use SPV mining. The alleged benefits you list there are no more than propaganda. Other pools get by fine with full verification of blocks and transactions on new block generation without delays getting work out to miners, nor an increase in orphans.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
sr. member
Activity: 481
Merit: 264
BCMonster.com BTC ZEN HUSH KMD ARRR VRSC ACH RFOX
March 08, 2016, 01:22:19 AM
#12
If you find a block 30 seconds after another block is found and there is no backlogged que at all maybe.  Its been a long time since i have seen any empty block.  I have seen some small ones but not empty.
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
March 08, 2016, 01:09:20 AM
#11
Whilst it is true that mining an empty block can be done faster as the block reward diminishes the omission of txs for the slightly better chance of winning the block reward becomes less attractive (so after the next halving one would expect to see fewer such empty blocks and even fewer after the following halving, etc.).

This is what is described as the "fee market" and will eventually be the only reward that miners will receive.
full member
Activity: 167
Merit: 100
March 08, 2016, 01:02:34 AM
#10
No. The size of a block does not matter in how quickly the block is solved. A block with no transactions and a full block both have the same probability of being the solution.

The size of the block doesn't matter but you can start solving for an empty block before you can start solving for a block with transactions.

Described in the thread referenced above:

Why do some pools do that? Is there an advantage?

Time.  Get the details of the last block mined, immediately start mining for the next - at this point 'empty' - block (and your chance at the block subsidy).  Then while things are busily mining away, build new headers that do include transactions, and at the next opportune moment start mining on that. It's just a small sliver of time, but against an otherwise equal opponent, collecting transactions by default would be a losing strategy in the long run.
staff
Activity: 3458
Merit: 6793
Just writing some code
March 08, 2016, 12:31:02 AM
#9
Obviously empty blocks means that txs that otherwise could have been in those blocks are instead sitting in the memory pool (delaying their confirmation and reducing the effective TPS rate).

So, if it does decrease the effective TPS rate, at some point is it an effective limit on the blocksize as well? Or is the effect of empty blocks constant with respect to blocksize? If it does effectively limit the blocksize, what is the limit?
No. The size of a block does not matter in how quickly the block is solved. A block with no transactions and a full block both have the same probability of being the solution.
full member
Activity: 167
Merit: 100
March 08, 2016, 12:27:12 AM
#8
Obviously empty blocks means that txs that otherwise could have been in those blocks are instead sitting in the memory pool (delaying their confirmation and reducing the effective TPS rate).

So, if it does decrease the effective TPS rate, at some point is it an effective limit on the blocksize as well? Or is the effect of empty blocks constant with respect to blocksize? If it does effectively limit the blocksize, what is the limit?
legendary
Activity: 1890
Merit: 1086
Ian Knowles - CIYAM Lead Developer
March 08, 2016, 12:16:11 AM
#7
Obviously empty blocks means that txs that otherwise could have been in those blocks are instead sitting in the memory pool (delaying their confirmation and reducing the effective TPS rate).

It is interesting that the CEO of AntPool has recently made public his support for Bitcoin Classic (and 2MB blocks) yet their pool is the one responsible for nearly all of the empty (1 tx) blocks at the moment.

(if he is really of the opinion that we need larger blocks now you'd think he'd bother to have his pool fill up the blocks that they are mining currently)
full member
Activity: 167
Merit: 100
March 08, 2016, 12:12:37 AM
#6
Modern Bitcoin mining is very different than years ago.


All pools use SPV mining. This means miner believes a new block header is valid and mine upon it.

This reduces orphan risk. During the period a whole block transactions are buffered, the receiver mines an empty block.


Why empty block? To avoid accidental double spend /double confirm. Double spend could cause the miner to lose funds from the reward due to block becoming invalid.


The block size is not as relevant anymore, but orphan risk is still present during the one second or so latency window after mining a block.

That is all made clear in the thread I referred to above [ correction: thread other poster referred to]. I suggest you read the full thread if you haven't. One of the arguments for mining empty blocks is to prevent double-spend. But the argument is specious and the real reason seems to be miners trying to gain advantage for themselves.

My question stands: Does allowing empty blocks effectively put an real-world limit on the blocksize?
sr. member
Activity: 689
Merit: 269
March 07, 2016, 08:54:12 AM
#5
Modern Bitcoin mining is very different than years ago.


All pools use SPV mining. This means miner believes a new block header is valid and mine upon it.

This reduces orphan risk. During the period a whole block transactions are buffered, the receiver mines an empty block.


Why empty block? To avoid accidental double spend /double confirm. Double spend could cause the miner to lose funds from the reward due to block becoming invalid.


The block size is not as relevant anymore, but orphan risk is still present during the one second or so latency window after mining a block.
sr. member
Activity: 689
Merit: 269
March 07, 2016, 08:35:47 AM
#4
I've read some long discussions

EDIT:

Please, stop reading some discussions, and study how the system actually works.


You don't know how Bitcoin actually works.


full member
Activity: 167
Merit: 100
March 06, 2016, 10:56:33 PM
#3
Bitcointalk Discussion thread over here:-
https://bitcointalksearch.org/topic/empty-blocks-1085800

The stackexchange links didn't have much information but the discussion in the bitcointalk mining group had a decent discussion and a lot of data. Thank you for posting it, I hadn't seen it before. There are a few discussions on reddit about it but for the most part, it didn't seem there was any consensus on how it affected the network.

My question still is.. don't zero transaction blocks effectively limit the blocksize?

For example, I would guess you couldn't have a blocksize of 100MB as large miners would publish zero transaction blocks, maybe even multiple zero sized blocks, to orphan other miner's work while they work on making a longer chain. When the block transaction time gets long enough, it seems like the system would break down. And that orphaned work decreases the hashing rate of the entire network. So, these types of transactions seem to artificially cap the total number of transactions and thus the "effective blocksize"?

Or do zero transaction blocks cause a decrease of the effective hashing power of the network that is constant against increases in blocksize?
full member
Activity: 167
Merit: 100
March 06, 2016, 10:08:57 PM
#1
I've read some long discussions about the pros and cons of miner's publishing zero transaction blocks (as 'some' are doing now).

The TL;DR is that:

Let's say the blocksize was 10MB and it took 10 minutes to solve a block. Miners would work on solving it but a large zero-miner would quickly solve a zero sized block. They would them publish it to their "large miner friends" who would start solving a next block.

Whoever solved the 10MB block would likely get their block orphaned if the empty block + next block was published immediately after the block was solved/broadcast. And whoever was working on the longer chain would be already working on the next empty block + next block.

In a way, publishing empty blocks seems to create an artificial cap on blocksize, does it not? As the blocksize gets larger and it takes longer to solve blocks, publishing empty transactions can cause more and more transactions to be orphaned.

Additionally, some (many?) people support miners publishing empty blocks. There seems some back and forth whether this should be allowed at all. As it is part of the protocol, disallowing it would seem about impossible at this point in time.

Doesn't this basically put a blocksize limit in the hands of the large miners? And isn't this just a way for the largest miners to gain an advantage over the others? Or is there some reason this is a "good thing"?
Jump to: