Added more tests and updated the presentation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-08 18:42:29 +00:00
parent 330b49a7ca
commit 182faf18d6
4 changed files with 230 additions and 11 deletions

View File

@@ -61,17 +61,55 @@ end
---
### Step 1 - "Requirements" non-trivial aspects
```elixir
receive do
{:propose, inst, value, t, pid_to_inform} ->
...
broadcast({:other_propose, inst, value})
...
{:other_propose, inst, value} -> ...
end
```
### Step 2 - "Prepare"
![w:600 center](./second-step.png)
---
### Step 2 - "Prepare" non-trivial aspects
```elixir
receive do
{:nack, inst, ballot, new_ballot} ->
...
broadcast({:abort, inst, ballot})
...
{:abort, inst, ballot} -> ...
end
```
---
### Step 3 - "Accept"
![w:600 center](./third-step.png)
---
---
### Step 3 - "Accept" non-trivial aspects
```elixir
receive do
{:accepted, inst, ballot} ->
...
broadcast({:decide, inst, value})
...
{:decide, inst, value} -> ...
end
```
### Step 4 - "Leader Crash"