Skip to content

Commit 097a835

Browse files
committed
fix milestones doc
1 parent 3737703 commit 097a835

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

docs/pos/concepts/finality/finality.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
!!! info "5 Second Finality in Polygon"
22

3-
NOTE: With the upgrade to Heimdall v2, deterministic finality on PoS is now achieved in between 2-5 seconds thanks to the 1-2 seconds block time in Heimdall, meaning miletones are voted on and finalized much faster.
3+
NOTE: With the upgrade to Heimdall v2, deterministic finality on PoS is now achieved in between 2-4 seconds thanks to the 1-2 seconds block time in Heimdall, meaning miletones are voted on and finalized much faster.
44

55
## How to Get Finalized Block
66

@@ -32,12 +32,7 @@ async function milestones_checkFinality(client: any, txHash: string): Promise<bo
3232
console.log(`Your transaction block: ${tx.blockNumber}`)
3333

3434
// Checking whether the finalized block number via milestones has reached the transaction block number.
35-
if (latestBlock.number !== null && latestBlock.number > tx.blockNumber) {
36-
console.log("Your transaction block has been confirmed after 16 blocks");
37-
return true
38-
} else {
39-
return false
40-
}
35+
return (latestBlock.number !== null && latestBlock.number > tx.blockNumber)
4136
}
4237
```
4338

@@ -67,7 +62,7 @@ async function milestones_checkFinality(client: any, txHash: string): Promise<bo
6762
### Results
6863

6964
The results should show whether the transaction has been finalized based on the
70-
selected milestone mechanism and network. Usually Milestones will take 3-5
65+
selected milestone mechanism and network. Usually Milestones will take 2-4
7166
seconds to finalize the transaction.
7267

7368

@@ -86,16 +81,16 @@ deterministic finality is Ethereum.
8681
With the introduction of milestones:
8782

8883
- Finality is **deterministic** even before a checkpoint is submitted to L1.
89-
After a certain number of blocks in consensus layer, a milestone is proposed and
90-
validated by Heimdall. Once 2/3+ of the network agrees, the milestone is
91-
finalized, and all transactions up to that milestone are considered final,
84+
For every block produced in the consensus layer, a milestone is proposed and
85+
validated by Heimdall, with supermajority of the voting power by validators.
86+
With a new milestone, all the transactions up to that point are considered final,
9287
with no chance of reorganization.
9388

9489
- Separation of Checkpoints and Milestones: Checkpoints still occur every 256
9590
blocks (minimum) and are submitted to Ethereum. However, milestones provide
9691
much faster finality on Polygon chain, using Heimdall layer for
9792
finalization, improving the user experience significantly.
9893

99-
_Finality achieved after a number of blocks confirmation,
100-
as well as a consensus period among the validators (approx. 3-5 seconds)_
94+
_Finality achieved after a block confirmation,
95+
as well as a consensus period among the validators (approx. 2-4 seconds)_
10196

0 commit comments

Comments
 (0)