From f3037a766d0858306ccceca37daf28ded3841fe7 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Tue, 14 Mar 2023 21:32:38 -0500 Subject: [PATCH] Add seq diagram line for rejected citation of incinerator --- forum-network/src/classes/dao/forum.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/forum-network/src/classes/dao/forum.js b/forum-network/src/classes/dao/forum.js index 7826cca..ae65ed5 100644 --- a/forum-network/src/classes/dao/forum.js +++ b/forum-network/src/classes/dao/forum.js @@ -185,6 +185,13 @@ export class Forum extends ReputationHolder { // Only a positive amount may be incinerated! Otherwise the sink could be used as a source. if (outboundAmount < 0) { this.scene?.flowchart?.log(`style ${citationEdge.from.id} fill:#620000`); + this.actions.propagate.log( + citationEdge.from.data, + { name: 'Incinerator' }, + `(${increment})`, + undefined, + '-x', + ); throw new Error('Incinerator can only receive positive citations!'); } // Reputation sent to the incinerator is burned! This means it is deducted from the sender,