reserve

abstract fun reserve(leaf: GroupId, maximumCost: Long): ReserveOutcome

Earmark up to maximumCost service units against this peer's holdings at leaf leaf (design §4.4). The earmark is local state, not replicated. Returns ReserveOutcome.Reserved carrying the ReservationId to complete against; ReserveOutcome.NoHoldings when available holdings at leaf cannot cover it; or GateClosed when this peer may not author entitlement at all — only a governed node, before its own enroll(self) applies or after it departs (issue #1892).