Skip to content

Commit

Permalink
Embedded markdown does not seem to work correctly in github mermaid.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Jan 2, 2024
1 parent 49fcbae commit 4a648dc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/block_production/lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ The following diagram describes Leap block production, as implemented in `librar
```mermaid
flowchart TD
pp[producer_plugin] --> D
A("`_replay()_`"):::fun --> B("`_replay_push_block()_`"):::fun
B --> E("`_maybe_switch_forks()_`"):::fun
C("`_init()_`"):::fun ---> E
A("replay()"):::fun --> B("replay_push_block()"):::fun
B --> E("maybe_switch_forks()"):::fun
C("init()"):::fun ---> E
C --> A
D("`_push_block()_`"):::fun ---> E
subgraph G["`**_apply_block()_**`"]
D("push_block()"):::fun ---> E
subgraph G["apply_block()"]
direction TB
start -- "stage = Ø" --> sb
sb("`_start_block()_`"):::fun -- "stage = building_block" --> et
et["execute transactions" ] -- "stage = building_block" --> fb("`_finalize_block()_`"):::fun
sb("start_block()"):::fun -- "stage = building_block" --> et
et["execute transactions" ] -- "stage = building_block" --> fb("finalize_block()"):::fun
fb -- "stage = assembled block" --> cb["add transaction metadata and create completed block"]
cb -- "stage = completed block" --> commit("`_commit_block()_ where we [maybe] add to fork_db and mark valid`"):::fun
cb -- "stage = completed block" --> commit("commit_block() (where we [maybe] add to fork_db and mark valid)"):::fun
end
B ----> start
E --> G
D --> F("`_log_irreversible()_`"):::fun
D --> F("log_irreversible()"):::fun
commit -- "stage = Ø" --> F
F -- "if in irreversible mode" --> G
Expand Down

2 comments on commit 4a648dc

@ericpassmore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok when I view it on github.

@greg7mdp
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old version?

Please sign in to comment.