def accept
ezx@1.11.0.0 · src/lock/world.bend:382
import ezx@1.11.0.0/src/lock/world.bend as World
import Base
import ezx@1.11.0.0/src/lock/lock.bend as L
382
383def accept(+orgs: List<&2, L.Origin>, +hub: String, +hash: String, answer: Answer) -> Verdict:
384 match answer:
385 case Miss{why}:
386 No{miss.src(L.origin(orgs, hash), L.known(orgs, hash), hash, hub, why)}
387 case Got{how, manifest, ss}:
388 accept.src(L.origin(orgs, hash), how, hash, manifest, ss)
389 case Said{text}:
390 said(hash, hub, text)
391 case Locked{text}:
392 locked(text)