canReserve method

bool canReserve(
  1. PeerId peer
)

Checks if a peer can make a reservation.

Implementation

bool canReserve(PeerId peer) {
  return _reservations < maxReservations;
}