Skip to content

Commit

Permalink
further simplification and cleaning of diagram
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Dec 6, 2024
1 parent adad789 commit 9abe1dc
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions server/docs/design/block-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ The purpose of the Block Verification feature is to ensure that blocks received
Sequence Diagram:
```mermaid
sequenceDiagram
participant U as UnverifiedRingBuffer
participant V as VerificationHandler
participant F as BlockHashingSessionFactory
participant S as BlockHashingSession
participant SV as SignaturesequenceDiagram
participant U as UnverifiedRingBuffer
participant V as VerificationHandler
participant F as BlockHashingSessionFactory
Expand All @@ -79,22 +84,22 @@ sequenceDiagram
U->>V: (1) onBlockItemsReceived(List<BlockItem>)
alt (2) Detects block_header
rect rgb(230, 230, 230)
V->>F: createSession(initialBlockItems, executorService, signatureVerifier)
Note over S: New instance of BlockHashingSession created
F-->>V: returns BlockHashingSession (S)
V-->>U: Returns without blocking
S->>S: Starts hash computation asynchronously
end
else (3) Append more Block Items
rect rgb(230, 230, 230)
loop
V->>S: addBlockItems(items)
V-->>U: return without blocking
S->>S: Continues hash computation asynchronously
end
else (4) Append BlockItems with block_proof
rect rgb(230, 230, 230)
V->>S: addBlockItems(items with block_proof)
V-->>U: return without blocking
S->>S: completeHashing()
Expand All @@ -110,7 +115,7 @@ sequenceDiagram
Note over BSM: (9) Follow-up to downstream services
end
end
end
```

## Interfaces
Expand Down

0 comments on commit 9abe1dc

Please sign in to comment.