Bitcoin Forum
November 09, 2024, 04:58:52 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Empty block?  (Read 214 times)
apogio (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 1209



View Profile WWW
July 28, 2023, 06:54:31 AM
Merited by pooya87 (1)
 #1

Hello. Yesterday, I saw this block: https://mempool.space/block/00000000000000000002645fd352bc274f017d8473992018dfd5326a52de2d53

It seems strange, since it's empty. I have observed that it was mined just 1 minute after the previous block was mined.

Mempool.space give this description for empty blocks:

Quote
When a new block is found, mining pools send miners a block template with no transactions so they can start searching for the next block as soon as possible. They send a block template full of transactions right afterward, but a full block template is a bigger data transfer and takes slightly longer to reach miners.

In this intervening time, which is usually no more than 1-2 seconds, miners sometimes get lucky and find a new block using the empty block template.

I don't understand though, does that mean that miners' mempools were totally empty and they didn't include any transactions? Or the interval time between the blocks was just 1-2 seconds and therefore, there wasn't enough time to include transactions?

█████████████████████████
████████▀▀████▀▀█▀▀██████
█████▀████▄▄▄▄████████
███▀███▄███████████████
██▀█████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██▄███████████████▀▀▄▄███
███▄███▀████████▀███▄████
█████▄████▀▀▀▀████▄██████
████████▄▄████▄▄█████████
█████████████████████████
 
 BitList 
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
REAL-TIME DATA TRACKING
CURATED BY THE COMMUNITY

.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
 
  List #kycfree Websites   
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
July 28, 2023, 07:00:01 AM
Merited by pooya87 (2), ABCbits (1)
 #2

When a block is mined, miners will verify the block and check the transactions, removing transactions that were included in the mined block. In the meantime, pool would generally send a template that contains the prev block hash, block height with a merkle tree that only contains the hash for the generation transaction. This way, the miners won't risk mining for an invalid block.

The practices differ for each mining pool and setup, but generally they would remove the transactions from the mempool rather than repopulating it again.

In addition, such practices are prevalent among SPV miners. They receive the hash of the block header and immediately send the new template to the miners without validating prior to that.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18746


View Profile
July 28, 2023, 07:47:16 AM
Merited by pooya87 (2), hosseinimr93 (2), ABCbits (1), FatFork (1)
 #3

I don't understand though, does that mean that miners' mempools were totally empty and they didn't include any transactions? Or the interval time between the blocks was just 1-2 seconds and therefore, there wasn't enough time to include transactions?
Miners, as in the large ASIC farms you are probably thinking of, don't have mempools. Nodes have mempools.

When the node belonging to a mining pool operator receives a block, it must validate that block and every transaction in it. Once it has done that, it must remove all the transactions in that block from its mempool. Then it must construct a new candidate block from its updated mempool, before calculating the Merkle root and then sending that block header to miners to be worked on. All this takes some time. Rather than having thousands of ASICs sitting idle during this time (and therefore wasting money), it will have them work on an empty block for the few seconds it takes for this process to happen. Occasionally they get lucky and mine an empty block.

If mining pools immediately created candidate blocks which were full, then chances are they would end up including transactions which were already confirmed in the block they just received but had not yet validated. This would result in this candidate block being invalid. So instead they create empty candidate blocks, and then update them to full candidate blocks a few seconds later once they have fully validated the last block.

Also note the timestamps on blocks are not actually accurate enough to tell you how long it took between mining blocks. The timestamps give an average time over days to weeks, but are inaccurate at the individual block level.
FatFork
Legendary
*
Offline Offline

Activity: 1778
Merit: 2663


Crypto Swap Exchange


View Profile WWW
July 28, 2023, 10:13:59 AM
 #4

Just to add to everything that o_e_l_e_o has already explained, keep in mind that the next candidate block is constantly being updated, just as it is visually represented on mempool.space. New transactions are added, while some others are dropped, only to be included again in subsequent blocks, all with the aim of optimizing the use of block space, primarily to maximize profit from transaction fees. This process takes some time to be processed, but it doesn't mean that miners will stay idle during that time, as that would be an inefficient use of time and resources.

It is logical to conclude that mining even an empty block is better than mining none at all. That's why nodes first send an empty block with the correct header to the miners. This way, the miners have something to work on immediately, as they compete with each other to solve the puzzle first.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18746


View Profile
July 28, 2023, 11:13:06 AM
 #5

Please be careful with mempool.space, because they cannot see our bitcoin balance under 2012 transactions. please prove it.
I assume you are talking about old P2PK outputs, in which case mempool.space displays them correctly. Some explorers show these outputs as belonging to the address derived from the relevant public key, but this is not accurate, since the coins are bot locked by the address at all, but by the pubkey.
paid2
Hero Member
*****
Offline Offline

Activity: 868
Merit: 2893


Crypto Swap Exchange


View Profile WWW
July 28, 2023, 11:47:39 AM
Merited by Cricktor (1)
 #6

Hello. Yesterday, I saw this block: https://mempool.space/block/00000000000000000002645fd352bc274f017d8473992018dfd5326a52de2d53

It seems strange, since it's empty. I have observed that it was mined just 1 minute after the previous block was mined.

Mempool.space give this description for empty blocks:

Quote
When a new block is found, mining pools send miners a block template with no transactions so they can start searching for the next block as soon as possible. They send a block template full of transactions right afterward, but a full block template is a bigger data transfer and takes slightly longer to reach miners.

In this intervening time, which is usually no more than 1-2 seconds, miners sometimes get lucky and find a new block using the empty block template.

I don't understand though, does that mean that miners' mempools were totally empty and they didn't include any transactions? Or the interval time between the blocks was just 1-2 seconds and therefore, there wasn't enough time to include transactions?

This subject was discussed many times here on the forum.
o_e_l_e_o already gave you all the necessary informations, but if you want, you can still read the following topics if you want more informations and details about it :

0 transaction block which is one of the most recent topic talking about empty blocks.

Why not to mine on pools mining empty blocks, and why do pools mine empty blocks : this topic from kano is very informative from a technical point of view

Why did miners waste much block space when there is need

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
apogio (OP)
Hero Member
*****
Offline Offline

Activity: 602
Merit: 1209



View Profile WWW
July 28, 2023, 12:04:37 PM
 #7

Thank you all. I am more than satisfied with all your responses.

█████████████████████████
████████▀▀████▀▀█▀▀██████
█████▀████▄▄▄▄████████
███▀███▄███████████████
██▀█████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██▄███████████████▀▀▄▄███
███▄███▀████████▀███▄████
█████▄████▀▀▀▀████▄██████
████████▄▄████▄▄█████████
█████████████████████████
 
 BitList 
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
REAL-TIME DATA TRACKING
CURATED BY THE COMMUNITY

.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
 
  List #kycfree Websites   
odolvlobo
Legendary
*
Offline Offline

Activity: 4494
Merit: 3403



View Profile
July 28, 2023, 12:27:54 PM
 #8

Hello. Yesterday, I saw this block: https://mempool.space/block/00000000000000000002645fd352bc274f017d8473992018dfd5326a52de2d53
It seems strange, since it's empty. I have observed that it was mined just 1 minute after the previous block was mined.
I don't understand though, does that mean that miners' mempools were totally empty and they didn't include any transactions? Or the interval time between the blocks was just 1-2 seconds and therefore, there wasn't enough time to include transactions?

Here is the ELI5 explanation: When a new block is received, a miner must spend time processing it and selecting a new set of transactions for the next block. The miner wastes time if it does nothing while setting up the new block, so the miner instead immediately starts on an empty block and switches to a full block when it is set up. Occasionally, the miner solves the empty block.

Also, note that block timestamps aren't required to be accurate so the 1 minute difference was probably not really 1 minute.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
July 29, 2023, 12:37:01 AM
 #9

So instead they create empty candidate blocks, and then update them to full candidate blocks a few seconds later once they have fully validated the last block.
I have seen quite a few blocks which were half filled if they were mined a few seconds after. Some of them might be included in the block template gradually after. I believe not all of the mining pool updates the block headers immediately either, there is a short delay in between full validation and sending a new work request.

Pool should drop this behavior regardless, the SPV mining problem demostrated that mining without prior full validation can have pretty big repercussions. The miniscule extra profits isn't worth it for the safety of the network.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18746


View Profile
July 29, 2023, 07:36:29 AM
 #10

Pool should drop this behavior regardless, the SPV mining problem demostrated that mining without prior full validation can have pretty big repercussions. The miniscule extra profits isn't worth it for the safety of the network.
Ideally, they wouldn't mine these half full or empty blocks at all, and the whole network would just agree to wait the few seconds it takes to fully validate the previous block. But then you end up with the classic prisoner's dilemma problem - it is in each individual mining pool's interests to break this agreement and attempt to mine empty blocks for a few seconds, and as soon as one starts doing it all the others are at a disadvantage if they also don't start doing it.

Still, it's not a huge problem - in the last month there were only 9 empty blocks, and there were zero blocks which were otherwise under filled.
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
July 30, 2023, 04:25:01 AM
 #11

Ideally, they wouldn't mine these half full or empty blocks at all, and the whole network would just agree to wait the few seconds it takes to fully validate the previous block. But then you end up with the classic prisoner's dilemma problem - it is in each individual mining pool's interests to break this agreement and attempt to mine empty blocks for a few seconds, and as soon as one starts doing it all the others are at a disadvantage if they also don't start doing it.

Still, it's not a huge problem - in the last month there were only 9 empty blocks, and there were zero blocks which were otherwise under filled.
Ditto on the game theoric approach. The main issue occurs mainly because the miner now trusts someone to verify their block for them first and thus risking building a ontop of an invalid chain. That would be detrimental to the network as we have observed previously.

Generally, miners are fairly well-connected now and validating the blocks would probably only take a couple hundred milliseconds (bitcoind takes 200ms but you can probably reduce overheads). The whole issue comes when we decide whether we should just save a couple of hundred milliseconds and sacrificing validation in the process. SPV wallets will always trust the longest chain, so they are responsible for their security.

Empty block isn't the problem, but the issue comes when they go along with it without validation at all.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!