rialo-limits 0.2.0

Limits of the Rialo network.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) Subzero Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::MAX_ORACLE_OUTPUT_SIZE;

/// Maximum number of messages that can be sent at once over a WebSocket connection.
pub const WEBSOCKET_MAX_BATCH_MESSAGES: usize = 100;

/// Maximum size of WebSocket data buffer (matches oracle output limits).
pub const WEBSOCKET_MAX_BUFFER_SIZE: usize = MAX_ORACLE_OUTPUT_SIZE;

/// Maximum reconnection backoff in seconds for WebSocket connections in the TEE
/// (used for exponential backoff when retrying failed connections).
pub const WEBSOCKET_MAX_RECONNECT_BACKOFF_SECS: u64 = 5;