-
Previously gossiped blocks? How does the miner decide which ommers to include? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answer from @ajsutton: The miner is importing gossiped blocks and locally building a tree of blocks (one branch of which is the canonical chain). Upon producing a block, the miner can use some of the blocks from another branch as ommers. In practice, Ethereum's PoW mechanism and relatively fast block time makes ommers common and the included ones are usually direct ommers (parent's sibling). There are some edge cases where the miner may be able to use their own blocks as ommers if they are building fast enough.
Which ommers are used doesn't matter: they all have the same value. |
Beta Was this translation helpful? Give feedback.
Answer from @ajsutton:
The miner is importing gossiped blocks and locally building a tree of blocks (one branch of which is the canonical chain). Upon producing a block, the miner can use some of the blocks from another branch as ommers.
In practice, Ethereum's PoW mechanism and relatively fast block time makes ommers common and the included ones are usually direct ommers (parent's sibling).
There are some edge cases where the miner may be able to use their own blocks as ommers if they are building fast enough.
Which ommers are used doesn't matter: they all have the same value.