You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/block-verification-in-parent-chain-assertion/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# Block verification in an assertion posted on the parent chain
2
2
3
-
This tutorial shows how to verify whether a block of a chain has been processed as part of an RBlock assertion on its parent chain.
3
+
This tutorial shows how to verify whether a block of a chain has been processed as part of an assertion on its parent chain.
4
4
5
-
It uses the `Rollup` contract to find the latest confirmed (or created if configured in the script) RBlock/node, find the event that created it, and get the latest processed block hash of the child chain that's part of the assertion of that RBlock/node.
5
+
It uses the `Rollup` contract to find the latest confirmed assertion hash, find the `AssertionCreated`event that created it, and get the latest processed block hash of the child chain that's part of that assertion's `afterState`.
6
6
7
7
Then it checks whether the block number passed as argument was created before the latest block hash of the child chain processed.
8
8
9
-
See [./exec.js](./scripts/exec.js) for inline explanations.
9
+
See [./exec.ts](./scripts/exec.ts) for inline explanations.
0 commit comments