Skip to content

Commit 949e7ff

Browse files
committed
description
1 parent 5a799b3 commit 949e7ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/concurrency_design.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ bp ->>- bp: validation and state transition
209209

210210
This is a simplified sequence diagram highlighting the differences when the parent block is not present, so it omits the interaction with fork choice GenServer. To summarize:
211211

212-
- The block processor spawns a download task under a download supervisor.
213-
- When the download finishes it will start a block processor for the parent, repeating the whole process for the parent.
212+
- The block processor spawns another processor for the parent, at a `download stage` and exits.
213+
- When the download finishes, the parent processor will do as a normal one, decoding, deserializing, interacting with the db, etc.
214214
- When the parent finishes the state transition, it will have saved both the block and the state to the persistent store.
215-
- The store will then notify the child block processor that it can now proceed with its own state transition.
215+
- The parent process will then spawn a new block processor for the child, at a `transition stage`.
216216

217217
Note that the persistent store here is a simplified structure. Internally, it will contain the fork tree and the cache. The fork tree will contain the relationship between blocks (the tree structure), which will enable to get a block’s children without iterating through the DB.
218218

0 commit comments

Comments
 (0)