approval: the gate reads no held-back ask (the operator channel offers every ask)

Builds: design 47 H §764 (The operator channel's limit), H-A-57
This commit is contained in:
2026-11-20 02:31:54 +01:00
parent 59a73e72c0
commit bd2db73c3b
4 changed files with 16 additions and 5 deletions
+2 -2
View File
@@ -217,7 +217,7 @@ func (g *Gate) openAsk(module, id string) (bool, time.Time, error) {
return err == nil && k != nil && k.Ended == "", time.Time{}, nil // raised and not yet taken by the router
}
switch rec.State {
case "open", "held-back":
case "open":
return true, time.Time{}, nil
case "chosen":
if w := rec.Warrant; w != nil && w.Option == OptionDecline {
@@ -335,7 +335,7 @@ func (g *Gate) Decided(id string) {
g.d.Logf("[approval] the router's record of ask %s cannot be read (%v): read again at the next start", id, err)
return
}
if rec == nil || rec.State == "open" || rec.State == "held-back" {
if rec == nil || rec.State == "open" {
return
}
calls, err := g.waiting(func(w WaitingCall) bool { return w.Ask == id })