//#region src/constants.d.ts /** * Configuration constants for the Eclesia indexer * These values control performance, timeouts, and connection management */ /** * Number of blocks to prefetch and keep in the processing queue * Higher values increase memory usage but improve throughput * Recommended range: 300-1000 depending on block size and available memory */ declare const DEFAULT_BATCH_SIZE = 500; /** * Default start height for indexing when no previous height is found */ declare const DEFAULT_START_HEIGHT = 1; /** * Default port for health check HTTP server */ declare const DEFAULT_HEALTH_CHECK_PORT = 8888; /** * Default port for Prometheus metrics server */ declare const DEFAULT_PROMETHEUS_PORT = 9090; /** * Default polling interval in milliseconds when using polling mode instead of WebSocket */ declare const DEFAULT_POLLING_INTERVAL_MS = 5000; /** * Timeout for connecting to the Tendermint RPC in milliseconds * If connection is not established within this time, it will be aborted */ declare const CONNECT_TIMEOUT_MS = 10000; /** * Timeout for RPC calls in milliseconds * If a call takes longer than this, it will be rejected */ declare const RPC_TIMEOUT_MS = 20000; /** * @deprecated Waiting for a block is no longer bounded by a timeout: an idle chain is not an * error. Kept as an export for compatibility; see IDLE_CHECK_INTERVAL_MS. */ declare const QUEUE_DEQUEUE_TIMEOUT_MS = 30000; /** * How long the indexer waits without any block announcement before checking the chain height. * If the chain has moved on without us the subscription is dead and a recovery is triggered; * if the chain is simply idle (halt, upgrade) the indexer reports WAITING and checks again. */ declare const IDLE_CHECK_INTERVAL_MS = 30000; /** * Delay before the first restart after a failure; doubles on every consecutive failure */ declare const RETRY_BASE_DELAY_MS = 5000; /** * Upper bound for the restart delay */ declare const RETRY_MAX_DELAY_MS = 300000; /** * Consecutive processing failures on the same block before the indexer gives up with a * fatal-error. A block that keeps failing after its data was fetched is a bug or bad data, not * an outage, and retrying it forever hides the problem. */ declare const MAX_FAILURES_PER_BLOCK = 5; /** * Address the health check and metrics servers bind to unless configured otherwise */ declare const DEFAULT_BIND_HOST = "0.0.0.0"; /** * Number of successful transactions before recycling the database client * Prevents long-running connection issues and stale connections */ declare const DB_CLIENT_RECYCLE_COUNT = 1500; /** * Block intervals for periodic event emission * Used for operations that should run at regular block intervals */ declare const PERIODIC_INTERVALS: { /** Emit periodic event every 50 blocks */ readonly SMALL: 50; /** Emit periodic event every 100 blocks */ readonly MEDIUM: 100; /** Emit periodic event every 1000 blocks - used for performance logging */ readonly LARGE: 1000; }; /** * Pagination limits for blockchain queries */ declare const PAGINATION_LIMITS: { /** Default limit for validator queries */ readonly VALIDATORS: 1000n; /** Default limit for delegation queries */ readonly DELEGATIONS: 250n; }; /** * Batch size for streaming genesis file processing * Number of entries to process at once from genesis JSON */ declare const GENESIS_BATCH_SIZE = 1000; //#endregion export { CONNECT_TIMEOUT_MS, DB_CLIENT_RECYCLE_COUNT, DEFAULT_BATCH_SIZE, DEFAULT_BIND_HOST, DEFAULT_HEALTH_CHECK_PORT, DEFAULT_POLLING_INTERVAL_MS, DEFAULT_PROMETHEUS_PORT, DEFAULT_START_HEIGHT, GENESIS_BATCH_SIZE, IDLE_CHECK_INTERVAL_MS, MAX_FAILURES_PER_BLOCK, PAGINATION_LIMITS, PERIODIC_INTERVALS, QUEUE_DEQUEUE_TIMEOUT_MS, RETRY_BASE_DELAY_MS, RETRY_MAX_DELAY_MS, RPC_TIMEOUT_MS }; //# sourceMappingURL=constants.d.cts.map