From 9abe1dc5f7a123a984ba090e8b5aca3250f6ed0b Mon Sep 17 00:00:00 2001 From: Alfredo Gutierrez Date: Fri, 6 Dec 2024 01:02:41 -0600 Subject: [PATCH] further simplification and cleaning of diagram Signed-off-by: Alfredo Gutierrez --- server/docs/design/block-verification.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/server/docs/design/block-verification.md b/server/docs/design/block-verification.md index 71742e41..ee4803ec 100644 --- a/server/docs/design/block-verification.md +++ b/server/docs/design/block-verification.md @@ -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 @@ -79,22 +84,22 @@ sequenceDiagram U->>V: (1) onBlockItemsReceived(List) 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() @@ -110,7 +115,7 @@ sequenceDiagram Note over BSM: (9) Follow-up to downstream services end end - end + ``` ## Interfaces