pub fn pending_legs(max_pending: u64) -> PendingLegs
Builds the shared pending map, bounded by capacity and TTL.