Avalanche
准备好在生产环境中调用了吗?
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Avalanche
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
Uncle blocks — also called ommers — are a concept from proof-of-work chains: valid blocks that were mined at nearly the same time as the canonical block but lost the race to be included in the main chain. On those chains uncles are recorded and partially rewarded to compensate miners and protect security. The Avalanche C-Chain does not have uncle blocks at all. It does not use proof-of-work mining; it reaches agreement through Snowman consensus, which finalizes a single accepted block at each height in roughly one to two seconds. Because there is no mining race and no competing-but-valid blocks left behind, the C-Chain never produces ommers, and the uncle-related fields exist only as inert remnants of Ethereum's JSON-RPC shape. The rest of this guide explains what that means in practice and what the uncle RPC methods return on chainId 43114.
eth_getUncleCountByBlockNumber and eth_getUncleCountByBlockHash return "0x0" for every C-Chain block, so there is no rate to monitor — code that computes an uncle rate will simply average zeros.uncles array as always empty and never dereference an uncle by index. eth_getUncleByBlockNumberAndIndex and eth_getUncleByBlockHashAndIndex return null on the C-Chain, so guard any inherited Ethereum code against that null instead of assuming an uncle object will be present.