Added more tests and updated the presentation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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"
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
### 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"
|
||||
|
||||

|
||||
|
||||
---
|
||||
---
|
||||
|
||||
### Step 3 - "Accept" non-trivial aspects
|
||||
|
||||
```elixir
|
||||
receive do
|
||||
{:accepted, inst, ballot} ->
|
||||
...
|
||||
broadcast({:decide, inst, value})
|
||||
...
|
||||
{:decide, inst, value} -> ...
|
||||
end
|
||||
```
|
||||
|
||||
### Step 4 - "Leader Crash"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user