From 4eef3e6c4dae4fb0b3e1452d49a8b5bb3aa330c3 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 16 Nov 2026 20:21:17 +0100 Subject: [PATCH] teller: hold an answer's warrant to the ask as the channel was asked it, its words cut #228 cut long hexadecimal runs from an assigner ask's words but checked the warrant against the assigner's whole words: the operator's answer to mesh-hand-acts' backup ask on novox (20:19) was refused as no longer the ask answered. --- .../cmd/mesh-delivery-teller/assignerasks.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/mesh-delivery-teller/cmd/mesh-delivery-teller/assignerasks.go b/modules/mesh-delivery-teller/cmd/mesh-delivery-teller/assignerasks.go index e9775cad..93f8dc4c 100644 --- a/modules/mesh-delivery-teller/cmd/mesh-delivery-teller/assignerasks.go +++ b/modules/mesh-delivery-teller/cmd/mesh-delivery-teller/assignerasks.go @@ -180,8 +180,9 @@ func (t *Teller) answerAssigner(key string, o oc.Option, w oc.Warrant) error { t.logf("%s: the ask %s was answered, and the assigner has asked again under %s: an answer to an earlier asking changes nothing", key, w.Ask, a.Ask.ID) return nil } - if occ.Digest(a.Ask) != w.AskDigest { - return fmt.Errorf("the assigner's ask %s is no longer the ask the operator answered (its digest is %s, the warrant's %s)", key, occ.Digest(a.Ask), w.AskDigest) + // The warrant is over the ask as the channel was asked it, its words cut (shortWords), not as the assigner keeps it. + if d := occ.Digest(shortWords(a.Ask)); d != w.AskDigest { + return fmt.Errorf("the assigner's ask %s is no longer the ask the operator answered (its digest is %s, the warrant's %s)", key, d, w.AskDigest) } body, err := meshdeliveryclient.EncodeAnswer(meshdeliveryclient.Answer{Option: o.ID, Warrant: warrantID(w), Words: occ.Says(w)}) if err != nil {