Перейти к содержимому

Uncle block ethereum что это

  • автор:

Sorry, you have been blocked

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

Cloudflare Ray ID: 80ed80532b13b377 • Your IP: Click to reveal 45.84.122.41 • Performance & security by Cloudflare

Mining

Mining is the process of creating a block of transactions to be added to the Ethereum blockchain. Miners essentially process pending transactions and are awarded block rewards in the form of Ether, the Ethereum network’s native currency, for each block generated. Generating a block requires intensive computational work (or hashing power) due to the difficulty set by the Ethereum network protocol. This difficulty level is proportional to the total amount of computational power (also known as the total hashrate of the network) being used to mine Ethereum and serves as a way to secure the network from attacks as well as tuning the speed at which blocks (and block rewards) are generated. This system of using hashing power generated by costly computer hardware is known as Proof of Work (PoW).

Who can become a miner on the Ethereum network?

Technically, anyone is able to mine on the Ethereum network using their computer. However, not everyone is able to mine Ether profitably. In most cases, miners must purchase dedicated computer hardware in order to mine profitably. While it is true anyone can run the mining software on their computer, it is unlikely that the average computer would be able to earn enough block rewards to cover the associated costs of mining (See question below for more details).

What are the costs associated with mining?

  • Potential costs of the hardware necessary to build and maintain a mining rig
  • Electrical cost of powering the mining rig
  • If you are mining in a pool, mining pools fees typically charge a flat % fee of each block generated by the pool
  • Potential cost of equipment to support mining rig (ventilation, energy monitoring, electrical wiring, etc.)
  • Tax obligations may vary by jurisdiction (For example, block rewards are considered gross income by the IRS)

Mining profitability calculators, such as CoinWarz, CryptoCompare, and EtherScan, can be helpful in determining if you may be able to mine profitably. Note that mining calculators may not 100% accurate and it may be useful to compare and contrast several results.

Where can I find the latest information on mining?

How much longer will Ethereum mining be around?

See Serenity phases for more information.

Block Generation

Block structure

Diagram of an Ethereum Block

A block consists a header, which includes information identifying the block and linking it to the rest of the chain, and a body of transactions. Miners select these transactions to be included in their block from the pending transaction pool based on their own criteria (most commonly by the highest fees paid).

Block times

The Ethereum network is designed to produce a block every 12 seconds. Block times will vary based upon how long it takes miners to generate a hash that meets the required mining difficulty at that moment. 12 seconds was chosen as a time that is as fast as possible, but is at the same time substantially longer than network latency. A 2013 paper by Decker and Wattenhofer in Zurich measured Bitcoin network latency and determined that 12.6 seconds is the time it takes for a new block to propagate to 95% of nodes. The goal of the 12 second design is to allow the network to propagate blocks as fast as possible without causing miners to find a significant number of stale blocks.

Etherscan example explained

All of the following examples are based on this block.

Height:

This number is the current number of blocks that exist in the Ethereum blockchain

TimeStamp:

The UNIX timestamp for when the block was collated

Example: 29 secs ago (Dec-28-2018 05:01:54 PM +UTC)

Transactions:

The transactions included in the block

Example: 43 transactions and 91 contract Internal Transactions in this Block

The hash of the block itself

Parent Hash:

The hash of the block from which this block was generated, also known as its parent block.

Sha3Uncles:

A SHA3 hash of the uncle block data included in the block

Mined By:

The address of who mined the block and received the block reward

Example: 0x5a0b54d5dc17e0aadc383d2db43b0a0d3e029c4c (SparkPool) in 2 secs

Difficulty:

A number that represents the difficulty required to mine this block

Total Difficulty:

A number that represents the total mining difficulty of the chain up until this block

The size of the block file in bytes

Example: 13160 bytes

Gas Used:

The total amount of gas used by all the transactions included in this block

Gas Limit:

The total limit of the amount of gas that could have been used by all transactions included in this block

Nonce:

A hash of the generated proof-of-work. This value will be null when a block is pending

Block Reward:

The total amount of Ether (ETH) given to the address which mined this block. This value includes the total block reward issued by the protocol combined with the fees/gas paid by all the transactions included in this block

Example: 3.032755182184797136 Ether (3 + 0.032755182184797136)

Uncles Reward:

The total amount of Ether (ETH) awarded to the uncle blocks included in this block

Extra Data:

This is an optional 32-byte value that can be used for storing information on the blockchain. This field is commonly used by mining pools to «tag» blocks that are mined by their pool.

Example: sparkpool-eth-cn-hz2 (Hex:0x737061726b706f6f6c2d6574682d636e2d687a32)

Uncle Blocks

Uncle blocks are stale blocks that are included in the calculation of which chain is the «longest»; that is to say, not just the parent and further ancestors of a block, but also the stale descendants of the block’s ancestor (in Ethereum jargon, «uncles») are added to the calculation of which block has the largest total proof of work backing it. Block rewards are given to stales: a stale block receives 87.5% of its base reward, and the nephew that includes the stale block receives the remaining 12.5%. Transaction fees, however, are not awarded to uncles.

Ethereum implements a simplified version of GHOST which only goes down seven levels. Specifically, it is defined as follows:

A block must specify a parent, and it must specify 0 or more uncles

  • n uncle included in block B must have the following properties:
  • It must be a direct child of the k-th generation ancestor of B, where 2 <= k <= 7.
  • It cannot be an ancestor of B
  • An uncle must be a valid block header, but does not need to be a previously verified or even valid block
  • An uncle must be different from all uncles included in previous blocks and all other uncles included in the same block (non-double-inclusion)
  • For every uncle U in block B, the miner of B gets an additional 3.125% added to its coinbase reward and the miner of U gets 93.75% of a standard coinbase reward.

This limited version of GHOST, with uncles includable only up to 7 generations, was used for two reasons. First, unlimited GHOST would include too many complications into the calculation of which uncles for a given block are valid. Second, unlimited GHOST with compensation as used in Ethereum removes the incentive for a miner to mine on the main chain and not the chain of a public attacker.

Блоки Ommer(Uncle): Что это такое?

Из-за специфического гендерного атрибута Uncle он был удален из описания.

Блок Ommer формируется, когда два блока одновременно добываются сетью.

Правило консенсуса в две трети от сетевых валидаторов решит, какой из двух блоков будет блоком Ommer.

Блоки Ommer создаются и используются блокчейном Ethereum.

Чтобы обеспечить проверку, общее согласование и безопасность данных, блокчейн-сети, такие как Ethereum, используют дерево Меркла.

Блоки Ommer отличаются от блоков-сирот, даже если оба они не являются основным блоком, принятым валидатором.

Операции, лежащие в основе технологии блокчейн, многочисленны и неоднозначны, за исключением разработчиков блокчейна, которые могут легко расшифровать.

Когда мы читаем о том, как создаются децентрализованные приложения, как добываются новые блоки или как проверяются транзакции, это написано самым простым языком. Затем нас заставляют поверить, что вся эта деятельность проста.

Однако разработчики и майнеры время от времени сталкиваются с двусмысленностью. Хотя эти двусмысленности не сравниваются с реальными проблемами. Примерами могут служить Хардфорк и блок Ommer.

В этой статье мы рассмотрим концепцию блока Ommer, то, как она создается, и ее основные особенности.

Как создается блок

Блоки Ommer, ранее называемые блоками Ommer (Uncle), образуются, когда сеть одновременно добывает два блока. В этом сценарии один блок будет отпущен, другой будет использован, а оставшийся блок называется блоком Ommer.

В сети Ethereum, когда два блока создаются и отправляются в цифровую книгу одновременно, только один из блоков может войти в книгу. Второй блок становится блоком Ommer.

Причина, по которой в прошлом его называли Uncle, заключается в том, чтобы показать семейную связь между использованными и оставшимися блоками. Позже было решено, что в гендерном названии блока нет необходимости, и «дядя» из описания был удален.

Когда из-за форка блокчейна создаются два блока, правило консенсуса в две трети от сетевых валидаторов решает, какой из блоков будет использоваться, а какой будет блоком Ommer.

Блоки Ommer намеренно интегрированы в блокчейн Ethereum. Интеграция осуществлялась с помощью, протокола проверки механизма консенсуса Casper The Friendly GHOST.

Концепт блока Ommer

Блоки Ommer создаются на блокчейне Ethereum. Сеть Ethereum — это публичный блокчейн, который использует механизм, обеспечивающий проверку и добавление данных в блокчейне на основе консенсуса.

Блокчейн-сети, такие как Ethereum, используют дерево Меркле для обеспечения проверки, общего согласования и защиты данных. Дерево Меркла — это структура данных, используемая для выполнения задач, перечисленных ранее.

Роль дерева Меркла заключается в установлении родственных связей для блоков данных. Он включает информацию из предыдущих блоков в новые блоки. Эта процедура аналогична передаче ДНК между новыми поколениями.

Представление дерева Меркла выглядит следующим образом:

Если первый блок в дереве называется Блоком А, новый блок, созданный из блока А, будет считаться потомком блока А и содержать сведения о блоке А и его информацию.

Вновь созданный блок можно было бы назвать блоком B, но он будет содержать символ “A”. Это “Блок Ba”. По мере того, как майнеры создают новые блоки из предыдущих блоков, связь продолжается, и на блокчейне строится генеалогическое древо.

Возможно, вам интересно, зачем мы сделали всю эту иллюстрацию. По этой причине:

Если бы два блока были проверены и созданы одновременно в блоке A, они были бы названы “Блоки Ba и Ba2”. Это показывает, что они являются родственными блоками из одного и того же родительского блока.

Поскольку сеть может принимать только один из блоков, она примет блок Ba, а другой разветвленный Ba2 будет оставлен в качестве блока Ommer.

Актуальность блоков Ommer в Ethereum

Обычно блоки Ommer — это случайные и непреднамеренные ошибки, которые должны быть созданы, и они являются побочными продуктами процесса майнинга, которые не были запланирован.

Тем не менее Ethereum стимулирует блоки Ommer, чтобы придать им актуальность. Причины включают в себя;

Во-первых, сеть позволяет включать работу, выполняемую на блоках Ommer, и дополнять работу, выполняемую на основном блокчейне. Этот процесс помогает повысить безопасность сети и затрудняет доступ посторонних лиц к деталям транзакций.

Блок Ommer помогает снизить централизацию стимулов для крупных майнинговых пулов. Эти крупные майнинговые пулы имеют крупные майнерские фермы и несколько майнеров;

В конце концов, они претендуют на все награды. Таким образом, блок Ommer — это награда, которая дополняет небольшие вознаграждения, оставшиеся для отдельных майнеров. Наконец, чтобы обеспечить возможность создания большего количества блоков Ommer, поскольку они являются побочным продуктом более короткого времени блокировки и увеличивают скорость сети.

Блоки Ommer часто путают с «осиротевшими блоками», тогда как они разные.

Потерянные блоки — это блоки, созданные в то время, когда майнеры конкурируют за одновременный майнинг одного и того же набора транзакций.

Принимается только первый майнер, проверивший блоки, в то время как другие завершающие блоки не добавляются ни в одну цепочку. Они — блоки-сироты.

Блоки Ommer добавляются в блокчейн, а потерянные блоки — нет. Однако майнеры обоих блоков получают вознаграждение в сети Ethereum.

Вывод

Майнеры не могут влиять или прерывать создание блоков Ommer. Существует вероятность того, что для каждого нового блока, созданного в сети Ethereum, будет создан новый блок.

Поскольку текущая версия Ethereum использует механизм консенсуса Proof of Work (PoW), существует вознаграждение за блоки Ommer. Вознаграждение составляет небольшой процент от первоначального вознаграждения за блок и комиссии за транзакцию.

В заключение отметим, что блоки Ommer были созданы случайно, но разработчики Ethereum придали им актуальность в технологии блокчейн.

Автор: Gate.io, Аналитик: Valentine. A Переводчик: Николай Д.

Эта статья представляет собой только мнение аналитика и не представляет собой каких-либо инвестиционных советов.

The Forked Uncle Block in the Ethereum

Currently, the PoW (Proof of Work) workload is used in the Ethereuem to prove the consensus algorithm. The generation of new blocks needs the “miners” to calculate the hash value to meet the specific requirements. The fastest of the many “miners” would have the right to produce the new zone. , the transaction information waiting to be processed in the blockchain will be “packaged” into this block so that these transaction data would then be stored in the blockchain.

However, things are not like that and the realistic is that the new block is not recognized.

The reason is that after the A “miner” got the needed harsh value, B “miner” also got the required harsh value. Since network propagation delays in some ways, B did not receive the notice that A had completed the calculation. Other “miners” might receive correct but different blocks. When other “miners” recognize the harsh value correct, they would synchronize the block with themselves. To work on the basis of this new block, the blockchain is now “temporarily forked” into two chains.

Generation of Uncle Block

The generation of new block in the Ethereum takes about 20s, which greatly increased the probability of this happening. At that time, according to the Ethereum Ghost protocol: the chain that firstly generates another new block would be considered as the main chain while the block not recognized as the main chain block will become the Uncle Block specified by the Ghost protocol.

Being an uncle block does not mean that the “miner” working for this block is working for nothing, who would get some certain rewards, while the “miner” including the uncle block also gets extra reward. However, a normal block can only store the uncle block of first two generations to the first seven generations, which means that blocks not included after the six blocks are discarded so that “miners” producign these blocks would not receive rewards.

Functions of Uncle Block

Firstly, uncle block enhance the security of the Ethereum network because Ethereum takes the “heaviest” chain as the main chain, which refers to the one with the largest number of blocks (Uncle blocks are legal blocks, so blocks included uncle block are “heavier” than those with no uncle blocks.

Being an uncle block does not mean that the “miner” working for this block is working for nothing, who would get some certain rewards, while the “miner” including the uncle block also gets extra reward. However, a normal block can only store the uncle block of first two generations to the first seven generations, which means that blocks not included after the six blocks are discarded so that “miners” producign these blocks would not receive rewards.

Functions of Uncle Block

Firstly, uncle block enhance the security of the Ethereum network because Ethereum takes the “heaviest” chain as the main chain, which refers to the one with the largest number of blocks (Uncle blocks are legal blocks, so blocks included uncle block are “heavier” than those with no uncle blocks.

Secondly, it makes the benefits of “miners” with slower network speed/lower performance balanced, because “miners” with slower network speed/weaker performance have a lower probability of producing effective blocks than those with faster block speed and better performance.

Quotation of the Uncle Block

  • An uncle block cannot be repeatedly referred;
  • A block can refer up to two uncle blocks;
  • Uncle block is referred in a separate block structure;

The block structure consists of “block header” + “uncle block” + “transaction list”;

The block header consists of 15 fields:

A transaction list is the content stored in this block; An actual block information is as follows:

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *