Ethereum
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Ethereum
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
An uncle block — ommer in the protocol's gender-neutral terminology — is a valid block that was mined but lost the race to be the canonical block at its height. It's a real, well-formed block; it just didn't make it onto the main chain. The distinction only existed under Proof-of-Work, when two miners could solve a block at nearly the same time and one had to lose. The canonical chain could then reference the loser as an uncle.
Here's the part that trips people up on chain 1 today: uncle blocks are a Proof-of-Work artifact, and Ethereum left Proof-of-Work at The Merge in September 2022 (block 15537393). Under Proof-of-Stake, exactly one validator proposes one block per 12-second slot — there's no mining race to lose, so no uncles are produced. The mechanism's purpose under PoW was to reward miners for valid-but-stale work, which reduced the centralizing advantage of fast block propagation and kept the chain secure. Uncle methods still return meaningful data for historical pre-Merge blocks; for everything after, they report an empty list.
sha3Uncles is the empty-list hash and the uncle count is 0x0 for every block after 15537393.safe and finalized tags instead. For any historical analysis of pre-Merge blocks, do treat a stretch with many uncles as a period where head blocks were less settled.uncles array and a non-empty sha3Uncles only for blocks below 15537393. For anything at or after The Merge, uncles is empty and sha3Uncles is the empty-list hash — don't write code that assumes uncles are always present, or that treats their absence as an error.