완결성과 포크
체인 합의
완결성과 포크은(는) CoddyKit의 무료 Web3 & DApp Development Fundamentals 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 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 exponentiallyAbsolute 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/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Web3 & DApp Development Fundamentals 강의 전체를 잠금 해제할 수 있습니다. Web3 & DApp Development Fundamentals 강의에는 총 4개의 강의가 포함되어 있습니다.
“완결성과 포크”에서 뭘 배우나요?
체인 합의 브라우저에서 직접 실행하는 실습 코드로 Web3 & DApp Development Fundamentals을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.
Web3 & DApp Development Fundamentals을(를) 시작하는 데 경험이 필요한가요?
사전 경험은 필요하지 않습니다. CoddyKit의 Web3 & DApp Development Fundamentals은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.
“완결성과 포크” 강의는 얼마나 걸리나요?
대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.
이 Web3 & DApp Development Fundamentals 강의에서 코드를 작성하고 실행할 수 있나요?
네. 모든 Web3 & DApp Development Fundamentals 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.
이 강의의 모든 강의
- 작업 증명
- 지분 증명
- 기타 합의 메커니즘
- 완결성과 포크