BlockId incoherent #25
-
Hello Everyone, i noticed something strange in blockId sequence.
Now, with another query on events below :
I got this :
So the block number which is equal to the blockId is : 2245092 and the timestamp 2022-09-15T22:17:30. So with a block generation every 6s the block id should be : 13471494/6 = 2245249 Why is there a difference between ids ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @d4rk0snet There is just a small flaw in your hypothesis. You assume that the block time is 6 seconds which isn't technically true. This means that in general you cannot say that a specific block in the future will happen on a specific time and instead approximations are used. I just want to outline the fact that this issue is common across all blockchains. if you take a look at Solana, since 2020 they had 7 network outages, from which the longest outage halted the chain for 17 hours. |
Beta Was this translation helpful? Give feedback.
Hello @d4rk0snet
That's a very interesting question!
There is just a small flaw in your hypothesis. You assume that the block time is 6 seconds which isn't technically true.
You see, the chain in general tries to produce a block every 6 seconds but that's not absolute. The goal is to make sure that the average time is 6 seconds so this means that it's perfectly normal to have block times which are longer or shorter than 6 seconds.
Example: When a runtime upgrade happens it usually take a minute for a new block to be produced.
This means that in general you cannot say that a specific block in the future will happen on a specific time and instead approximations are used.
I just want to outl…