From 89f73aced80fb973f1029c9ff2e5562566c0ebf5 Mon Sep 17 00:00:00 2001 From: Fang Date: Tue, 14 Nov 2017 00:55:03 +0100 Subject: [PATCH] If we got changes from a /report, don't send those same changes back to them. --- app/hall.hoon | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/hall.hoon b/app/hall.hoon index 443c18646b..2c162b1fa4 100644 --- a/app/hall.hoon +++ b/app/hall.hoon @@ -38,6 +38,7 @@ nicks/(map ship nick) ::< local nicknames binds/(jug char audience) ::< circle glyph lookup public/(set circle) ::< publicly member of + rir/wire ::< current rumor wire == :: ++ story ::> wire content $: count/@ud ::< (lent grams) @@ -1960,7 +1961,7 @@ `det :: $burden - ::?: &(=(who.qer src.bol) did-they-send-a-burden) ~ + ?: &(=(who.qer src.bol) =(rir /(scot %p src.bol)/report)) ~ ?. ?=($story -.det) ~ ?: ?=(?($follow $inherited $sequent) -.det.det) ~ :: only burden channels for now. @@ -2158,6 +2159,14 @@ :: |= {wir/wire rum/rumor} ^- (quip move _+>) + ::NOTE to keep us from echoing changes back to their + :: sender, we want to know (in ++feel) if a delta + :: was caused by a rumor from a /report. + :: if gall worked as advertised, we'd use ost.bol + :: and wex.bol to find out, but wex is never set, + :: so we just keep track of the "current rumor + :: wire" instead. + =. rir wir =^ mos +>.$ %- pre-bake => (ta-hear:ta wir rum)