Web3 & DApp Development Fundamentals · レッスン

ファイナリティとフォーク

チェーンの合意

レッスン 4/413 ステップ

「ファイナリティとフォーク」はCoddyKit上の無料Web3 & DApp Development Fundamentalsレッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはWeb3 & DApp Development Fundamentals学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Web3 & DApp Development Fundamentalsコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

When Is a Block Final?

Adding a block is not the same as it being permanent. Finality is the guarantee that a block can no longer be reverted.

Understanding finality and forks is key to knowing when a transaction is truly settled.

What Is a Fork?

A fork occurs when the chain temporarily splits into two competing branches — for example, when two valid blocks appear at nearly the same time.

The network must decide which branch becomes the official history.

Block 9
   |
   +-- Block 10a (branch A)
   |
   +-- Block 10b (branch B)
Which one wins?

The Fork Choice Rule

A fork choice rule tells nodes which branch to follow. PoW chains often use the longest (heaviest) chain rule.

Whichever branch accumulates the most work or attestations becomes canonical.

Orphaned and Stale Blocks

The losing branch's blocks become orphaned (or stale). Their transactions return to the mempool to be included in a future block.

This is why a single confirmation is not yet fully safe.

Probabilistic Finality

In PoW, finality is probabilistic: the more blocks built on top of yours, the less likely it can be reversed.

Each additional confirmation makes a reversal exponentially harder. Bitcoin users often wait for 6 confirmations.

tx in Block 100:
  +1 block  -> low confidence
  +6 blocks -> very high confidence
  reversal cost grows exponentially

Absolute Finality

Some PoS systems offer absolute (deterministic) finality: once a block is finalized by validator votes, it can never be reverted without massive slashing.

This gives a clear, hard cutoff instead of waiting for probabilities to improve.

Finality in Ethereum PoS

Ethereum groups slots into epochs. After two epochs of supermajority attestations, blocks become finalized.

Reverting a finalized block would require burning at least one-third of all staked ETH.

Soft Forks

A soft fork is a backward-compatible rule change: blocks valid under the new rules are still valid under the old ones.

Non-upgraded nodes can still follow the chain, so soft forks are less disruptive.

Hard Forks

A hard fork is a backward-incompatible change. Nodes must upgrade, or they will reject the new blocks.

If the community disagrees, a hard fork can permanently split one chain into two (for example, Ethereum and Ethereum Classic).

Reorganizations

A reorg happens when nodes switch from one branch to a longer competing branch, replacing recently accepted blocks.

Small reorgs are normal near the chain tip; deep reorgs are a serious security concern.

Putting It Together

Forks are temporary disagreements resolved by a fork choice rule. Finality tells us when a block is safe: probabilistic in PoW, often absolute in PoS.

Soft and hard forks describe how rules themselves change over time.

Quick Check

Test your understanding of finality and forks.

Recap: Finality and Forks

You learned that:

  • A fork is a temporary split resolved by a fork choice rule
  • Losing blocks become orphaned
  • PoW gives probabilistic finality; PoS can give absolute finality
  • Soft forks are compatible; hard forks are not

Next course: gas and transactions.

無料で開始

AI チューターと学ぶ Web3 & DApp Development Fundamentals — 無料

ブラウザでリアルコードを書いて実行し、24/7 の AI チューターから瞬時にサポートを受け、ウェブまたはアプリで続きから学習できます。

コース
29
レッスン
105

よくある質問

「ファイナリティとフォーク」レッスンは無料ですか?

はい。「ファイナリティとフォーク」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Web3 & DApp Development Fundamentalsコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Web3 & DApp Development Fundamentalsコースには全4レッスンが含まれています。

「ファイナリティとフォーク」で何を学びますか?

チェーンの合意 ブラウザで直接実行するハンズオンコードでWeb3 & DApp Development Fundamentalsを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Web3 & DApp Development Fundamentalsを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのWeb3 & DApp Development Fundamentalsは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。

「ファイナリティとフォーク」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このWeb3 & DApp Development Fundamentalsレッスンでコードを書いて実行できますか?

はい。すべてのWeb3 & DApp Development Fundamentalsレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. Proof of Work
  2. Proof of Stake
  3. その他のメカニズム
  4. ファイナリティとフォーク
← Web3 & DApp Development Fundamentalsに戻る