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 {