const GRPC_CONNECT_INITIAL_MS: u64 = 50;Expand description
Exponential-backoff retry parameters for the Mountain → Cocoon gRPC handshake. After the Bootstrap.ts stage-reorder fix, Cocoon’s RPCServer (port 50052) starts as Stage 3 (before MountainConnection), so the port is available within 2-5 seconds of spawn. Budget raised to 30 s as a defensive buffer for slow hardware or contended startup.
Policy: start at 50 ms, double each attempt up to a 2 s ceiling, with a hard 30 s total-budget. Under healthy spawn timing (Cocoon binds 50052 within 2-3s) this converges on attempts 5-8 in <~3s total; under a genuinely dead Cocoon the loop abandons at the budget.